Skip to content

Commit

Permalink
Disable a test in Py3.11.4 due to a bug in CPython. See python/cpytho…
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jun 26, 2023
1 parent 0fce286 commit 002f965
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/run/cpdef_enums.pyx
Expand Up @@ -151,10 +151,13 @@ def test_pickle():
>>> from pickle import loads, dumps
>>> import sys
Pickling enums won't work without the enum module, so disable the test
(now requires 3.6 for IntFlag)
>>> if sys.version_info < (3, 6):
Pickling enums won't work without the enum module, so disable the test in Py<3.6.
(requires 3.6 for IntFlag)
Python 3.11.4 has a bug that breaks pickling: https://github.com/python/cpython/issues/105332
>>> if sys.version_info < (3, 6) or sys.version_info[:3] == (3,11,4):
... loads = dumps = lambda x: x
>>> loads(dumps(PyxEnum.TWO)) == PyxEnum.TWO
True
>>> loads(dumps(PxdEnum.RANK_2)) == PxdEnum.RANK_2
Expand Down

0 comments on commit 002f965

Please sign in to comment.