Skip to content

Commit a8ae4b2

Browse files
committed
pythongh-99518: Fix escape symbol in test_enum
1 parent 86a49e0 commit a8ae4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_enum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ class MoreColor(Color):
14781478
class EvenMoreColor(Color, IntEnum):
14791479
chartruese = 7
14801480
#
1481-
with self.assertRaisesRegex(ValueError, "\(.Foo., \(.pink., .black.\)\) is not a valid .*Color"):
1481+
with self.assertRaisesRegex(ValueError, r"\(.Foo., \(.pink., .black.\)\) is not a valid .*Color"):
14821482
Color('Foo', ('pink', 'black'))
14831483

14841484
def test_exclude_methods(self):

0 commit comments

Comments
 (0)