Skip to content

Commit 586aca3

Browse files
authored
gh-104764: Skip failing tests in test_enum that started failing. (#104765)
Skip failing tests in test_enum that started failing when the version was bumped to 3.13.
1 parent 4194d8f commit 586aca3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/test/test_enum.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ class Inner(Enum):
10901090
)
10911091

10921092
@unittest.skipIf(
1093-
python_version < (3, 13),
1093+
python_version < (3, 14),
10941094
'inner classes are still members',
10951095
)
10961096
def test_nested_classes_in_enum_are_not_members(self):
@@ -4261,8 +4261,8 @@ class Color(Enum):
42614261
self.assertEqual(Color.green.value, 3)
42624262

42634263
@unittest.skipIf(
4264-
python_version < (3, 13),
4265-
'mixed types with auto() will raise in 3.13',
4264+
python_version < (3, 14),
4265+
'mixed types with auto() will raise in the future',
42664266
)
42674267
def test_auto_garbage_fail(self):
42684268
with self.assertRaisesRegex(TypeError, 'will require all values to be sortable'):
@@ -4271,8 +4271,8 @@ class Color(Enum):
42714271
blue = auto()
42724272

42734273
@unittest.skipIf(
4274-
python_version < (3, 13),
4275-
'mixed types with auto() will raise in 3.13',
4274+
python_version < (3, 14),
4275+
'mixed types with auto() will raise in the future',
42764276
)
42774277
def test_auto_garbage_corrected_fail(self):
42784278
with self.assertRaisesRegex(TypeError, 'will require all values to be sortable'):
@@ -4303,8 +4303,8 @@ def _generate_next_value_(name, start, count, last):
43034303
self.assertEqual(Color.blue.value, 'blue')
43044304

43054305
@unittest.skipIf(
4306-
python_version < (3, 13),
4307-
'auto() will return highest value + 1 in 3.13',
4306+
python_version < (3, 14),
4307+
'auto() will return highest value + 1 in the future',
43084308
)
43094309
def test_auto_with_aliases(self):
43104310
class Color(Enum):

0 commit comments

Comments
 (0)