Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-104764: Skip failing tests in test_enum that started failing. #104765

Merged
merged 1 commit into from
May 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ class Inner(Enum):
)

@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):
Expand Down Expand Up @@ -4261,8 +4261,8 @@ class Color(Enum):
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'):
Expand All @@ -4271,8 +4271,8 @@ class Color(Enum):
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'):
Expand Down Expand Up @@ -4303,8 +4303,8 @@ def _generate_next_value_(name, start, count, last):
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):
Expand Down