gh-99518: Fix escape symbol in `test_enum` (#99519)

This commit is contained in:
Nikita Sobolev 2022-11-16 17:06:37 +03:00 committed by GitHub
parent 00437ad304
commit 5cfb7d19f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):