-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Milestone
Description
Describe the bug
======================================================================
FAIL: test_pickle (cpdef_enums)
Doctest: cpdef_enums.test_pickle
----------------------------------------------------------------------
Traceback (most recent call last):
File "/.../python3.12/doctest.py", line 2228, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for cpdef_enums.test_pickle
File "/.../TEST_TMP/run/c/cpdef_enums/cpdef_enums.cpython-312d-x86_64-linux-gnu.so", line unknown line number, in test_pickle
----------------------------------------------------------------------
File "/.../TEST_TMP/run/c/cpdef_enums/cpdef_enums.cpython-312d-x86_64-linux-gnu.so", line ?, in cpdef_enums.test_pickle
Failed example:
loads(dumps(PxdEnum.RANK_2)) == PxdEnum.RANK_2
Exception raised:
Traceback (most recent call last):
File "/.../python3.12/doctest.py", line 1357, in __run
exec(compile(example.source, filename, "single",
File "<doctest cpdef_enums.test_pickle[4]>", line 1, in <module>
loads(dumps(PxdEnum.RANK_2)) == PxdEnum.RANK_2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported operand type(s) for |: 'PxdEnum' and 'NoneType'
Code to reproduce the behaviour:
No response
Expected behaviour
No response
OS
No response
Python version
3.12.0b1
Cython version
master
Additional context
No response