mirror of https://github.com/python/cpython
gh-99518: Fix escape symbol in `test_enum` (#99519)
This commit is contained in:
parent
00437ad304
commit
5cfb7d19f5
|
@ -1478,7 +1478,7 @@ class TestSpecial(unittest.TestCase):
|
|||
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):
|
||||
|
|
Loading…
Reference in New Issue