diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-12 21:28:46 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-04-14 13:40:22 +0200 |
commit | ecd9a4ba00e2403b6be6f259f5ce43686f1590f6 (patch) | |
tree | 601c748aee22c750351da0f4959fc8e042a8029e | |
parent | eb6d31a5e3046d7d7d324a5861496609135cc2c1 (diff) | |
download | cython-ecd9a4ba00e2403b6be6f259f5ce43686f1590f6.tar.gz |
Make a test Py3.10 compatible.
-rw-r--r-- | tests/run/cpdef_enums.pyx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run/cpdef_enums.pyx b/tests/run/cpdef_enums.pyx index d2e09454f..c8d9d8205 100644 --- a/tests/run/cpdef_enums.pyx +++ b/tests/run/cpdef_enums.pyx @@ -33,10 +33,10 @@ True Traceback (most recent call last): NameError: ...name 'RANK_3' is not defined ->>> set(PyxEnum) == set([TWO, THREE, FIVE]) +>>> set(PyxEnum) == {TWO, THREE, FIVE} True ->>> str(PyxEnum.TWO) -'PyxEnum.TWO' +>>> str(PyxEnum.TWO).split(".")[-1] # Py3.10 changed the output here +'TWO' >>> PyxEnum.TWO + PyxEnum.THREE == PyxEnum.FIVE True >>> PyxEnum(2) is PyxEnum["TWO"] is PyxEnum.TWO |