Just trying to update my Synapse dependencies and noticed that one test for canonicaljson failed when using the latest release of the new frozendict.
* python3_9: running distutils-r1_run_phase python_test
...E...
======================================================================
ERROR: test_frozen_dict (test_canonicaljson.TestCanonicalJson)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/canonicaljson-1.4.0/work/python-canonicaljson-1.4.0/test_canonicaljson.py", line 110, in test_frozen_dict
encode_canonical_json(frozendict({"a": 1})), b'{"a":1}',
File "/var/tmp/portage/dev-python/canonicaljson-1.4.0/work/python-canonicaljson-1.4.0-python3_9/lib/canonicaljson.py", line 73, in encode_canonical_json
s = _canonical_encoder.encode(json_object)
File "/usr/lib/python3.9/site-packages/simplejson/encoder.py", line 296, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.9/site-packages/simplejson/encoder.py", line 378, in iterencode
return _iterencode(o, 0)
File "/var/tmp/portage/dev-python/canonicaljson-1.4.0/work/python-canonicaljson-1.4.0-python3_9/lib/canonicaljson.py", line 29, in _default
return obj._dict
AttributeError: 'frozendict.frozendict' object has no attribute '_dict'
----------------------------------------------------------------------
Ran 7 tests in 0.037s
FAILED (errors=1)
Just trying to update my Synapse dependencies and noticed that one test for canonicaljson failed when using the latest release of the new frozendict.
This is testing the following versions: