Skip to content

Commit

Permalink
gh-99518: Fix escape symbol in test_enum (#99519)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Nov 16, 2022
1 parent 00437ad commit 5cfb7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ class MoreColor(Color):
class EvenMoreColor(Color, IntEnum):
chartruese = 7
#
with self.assertRaisesRegex(ValueError, "\(.Foo., \(.pink., .black.\)\) is not a valid .*Color"):
with self.assertRaisesRegex(ValueError, r"\(.Foo., \(.pink., .black.\)\) is not a valid .*Color"):
Color('Foo', ('pink', 'black'))

def test_exclude_methods(self):
Expand Down

0 comments on commit 5cfb7d1

Please sign in to comment.