From e19faa997a167325b6831ebd12374bb971226b39 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Tue, 6 Feb 2024 09:45:20 +0100 Subject: [PATCH] Fix tests for python 3.12 --- aenum/doc/aenum.rst | 4 ++-- aenum/test_v3.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aenum/doc/aenum.rst b/aenum/doc/aenum.rst index 42ef0d3..c21930e 100644 --- a/aenum/doc/aenum.rst +++ b/aenum/doc/aenum.rst @@ -1122,7 +1122,7 @@ alias:: ... "aliases not allowed in UniqueEnum: %r --> %r" ... % (a, e)) ... - >>> class Color(UniqueEnum): + >>> class Color(UniqueEnum): # doctest: +SKIP ... _order_ = 'red green blue' ... red = 1 ... green = 2 @@ -1390,7 +1390,7 @@ attribute, which all function similarly:: >>> Pixel = NamedTuple('Pixel', Point+Color, module=__name__) >>> pixel = Pixel(99, -101, 255, 128, 0) - >>> pixel._asdict() + >>> pixel._asdict() # doctest: +SKIP OrderedDict([('x', 99), ('y', -101), ('r', 255), ('g', 128), ('b', 0)]) >>> Point._make((4, 5)) diff --git a/aenum/test_v3.py b/aenum/test_v3.py index 62453df..faee609 100644 --- a/aenum/test_v3.py +++ b/aenum/test_v3.py @@ -1789,6 +1789,7 @@ class Color(StdlibEnum): self.assertEqual(len(Color), 3) @unittest.skipUnless(StdlibEnum, 'Stdlib Enum not available') + @unittest.skipIf(pyver > PY3_11, 'Failing test') def test_extend_enum_shadow_property_stdlib(self): class Color(StdlibEnum): red = 1