Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Running the tests on Python 3.9 make two test cases fail.
ERROR: test_unpack_composite (test_umsgpack.TestUmsgpack)
Traceback (most recent call last):
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/test_umsgpack.py", line 439, in test_unpack_composite
self.assertEqual(umsgpack.unpackb(data), obj)
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/umsgpack.py", line 1019, in _unpackb3
return _unpack(io.BytesIO(s), options)
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/umsgpack.py", line 833, in _unpack
return _unpack_dispatch_table[code](code, fp, options)
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/umsgpack.py", line 813, in _unpack_map
elif not isinstance(k, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'
ERROR: test_unpack_exceptions (test_umsgpack.TestUmsgpack)
Traceback (most recent call last):
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/test_umsgpack.py", line 446, in test_unpack_exceptions
umsgpack.unpackb(data)
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/umsgpack.py", line 1019, in _unpackb3
return _unpack(io.BytesIO(s), options)
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/umsgpack.py", line 833, in _unpack
return _unpack_dispatch_table[code](code, fp, options)
File "/builddir/build/BUILD/u-msgpack-python-2.5.0/umsgpack.py", line 813, in _unpack_map
elif not isinstance(k, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'
This is due to the classes from collections.abc not being exposed anymore through the collections module: https://docs.python.org/3.9/whatsnew/3.9.html#removed
In that case
Hashableneeds to be imported fromcollections.abc