Iotic-Labs / py-ubjson

Universal Binary JSON draft-12 serializer for Python
Apache License 2.0
42 stars 11 forks source link

Test failures with Python 3.12 #18

Open mgorny opened 9 months ago

mgorny commented 9 months ago

When running the test suite with Python 3.12.0, I'm getting two test failures:

======================================================================
FAIL: test_recursion (test.test.TestEncodeDecodeFpExt.test_recursion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/py-ubjson/test/test.py", line 476, in test_recursion
    with self.assert_raises_regex(RuntimeError, 'recursion'):
AssertionError: RuntimeError not raised

======================================================================
FAIL: test_recursion (test.test.TestEncodeDecodePlainExt.test_recursion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/py-ubjson/test/test.py", line 476, in test_recursion
    with self.assert_raises_regex(RuntimeError, 'recursion'):
AssertionError: RuntimeError not raised
vtermanis commented 9 months ago

It's probably a change in the default recursion limit with the latest version of Python - I'll have a look later.