ethanfurman / aenum

Advanced Enumerations for Python
183 stars 14 forks source link

Test failure with Python 3.11 #27

Open fabaff opened 1 year ago

fabaff commented 1 year ago

The build process of aenum for nixpkgs fails on Python 3.11 while it works on Python 3.10.

running install tests
.....................................................................................................................................................................................................................................E................................F....................................................................................................................................................................................
======================================================================
ERROR: test_stdlib_inheritence (aenum.test_v3.TestEnumV3.test_stdlib_inheritence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/4aps5crh9miyrkxvxs8z3p51iy9i6mh0-python3.11-aenum-3.1.11/lib/python3.11/site-packages/aenum/test_v3.py", line 91, in test_stdlib_inheritence
    class AStrEnum(StrFlag):
                   ^^^^^^^
NameError: name 'StrFlag' is not defined

======================================================================
FAIL: test_extend_flag_backwards_stdlib (aenum.test_v3.TestExtendEnumV3.test_extend_flag_backwards_stdlib)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/4aps5crh9miyrkxvxs8z3p51iy9i6mh0-python3.11-aenum-3.1.11/lib/python3.11/site-packages/aenum/test_v3.py", line 1899, in test_extend_flag_backwards_stdlib
    self.assertTrue(Color(16) is Color.MAGENTA)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 443 tests in 0.594s

FAILED (failures=1, errors=1)