]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104764: Skip failing tests in test_enum that started failing. (#104765)
authorT. Wouters <thomas@python.org>
Mon, 22 May 2023 23:17:06 +0000 (01:17 +0200)
committerGitHub <noreply@github.com>
Mon, 22 May 2023 23:17:06 +0000 (01:17 +0200)
Skip failing tests in test_enum that started failing when the version was bumped to 3.13.

Lib/test/test_enum.py

index fb7a016c9007f8d444489834f0c8c46c57c6de27..350554bfd2cc5b3511c17cc7fa047a20f5e8c2fa 100644 (file)
@@ -1090,7 +1090,7 @@ class TestSpecial(unittest.TestCase):
             )
 
     @unittest.skipIf(
-            python_version < (3, 13),
+            python_version < (3, 14),
             'inner classes are still members',
             )
     def test_nested_classes_in_enum_are_not_members(self):
@@ -4261,8 +4261,8 @@ class TestInternals(unittest.TestCase):
         self.assertEqual(Color.green.value, 3)
 
     @unittest.skipIf(
-            python_version < (3, 13),
-            'mixed types with auto() will raise in 3.13',
+            python_version < (3, 14),
+            'mixed types with auto() will raise in the future',
             )
     def test_auto_garbage_fail(self):
         with self.assertRaisesRegex(TypeError, 'will require all values to be sortable'):
@@ -4271,8 +4271,8 @@ class TestInternals(unittest.TestCase):
                 blue = auto()
 
     @unittest.skipIf(
-            python_version < (3, 13),
-            'mixed types with auto() will raise in 3.13',
+            python_version < (3, 14),
+            'mixed types with auto() will raise in the future',
             )
     def test_auto_garbage_corrected_fail(self):
         with self.assertRaisesRegex(TypeError, 'will require all values to be sortable'):
@@ -4303,8 +4303,8 @@ class TestInternals(unittest.TestCase):
         self.assertEqual(Color.blue.value, 'blue')
 
     @unittest.skipIf(
-            python_version < (3, 13),
-            'auto() will return highest value + 1 in 3.13',
+            python_version < (3, 14),
+            'auto() will return highest value + 1 in the future',
             )
     def test_auto_with_aliases(self):
         class Color(Enum):