Skip to content

Test failures for apptools.persistence on Python 3.9 #209

@kitchoi

Description

@kitchoi

I got the following test failures from apptools.persistence when I ran the test suite with Python 3.9:

$ python -m unittest discover -t . apptools.persistence
...s....EE..........
======================================================================
ERROR: test_pickle_classic (apptools.persistence.tests.test_state_pickler.TestDictPickler)
Test if classic classes can be pickled.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kchoi/Work/ETS/apptools/apptools/persistence/tests/test_state_pickler.py", line 291, in test_pickle_classic
    self.verify(t, state)
  File "/Users/kchoi/Work/ETS/apptools/apptools/persistence/tests/test_state_pickler.py", line 151, in verify
    decodestring = getattr(base64, 'decodebytes', base64.decodestring)
AttributeError: module 'base64' has no attribute 'decodestring'

======================================================================
ERROR: test_pickle_traits (apptools.persistence.tests.test_state_pickler.TestDictPickler)
Test if traited classes can be pickled.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kchoi/Work/ETS/apptools/apptools/persistence/tests/test_state_pickler.py", line 365, in test_pickle_traits
    self.verify(t, state)
  File "/Users/kchoi/Work/ETS/apptools/apptools/persistence/tests/test_state_pickler.py", line 151, in verify
    decodestring = getattr(base64, 'decodebytes', base64.decodestring)
AttributeError: module 'base64' has no attribute 'decodestring'

----------------------------------------------------------------------
Ran 20 tests in 0.015s

FAILED (errors=2, skipped=1)

These tests are passing on Python 3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions