]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99518: Fix escape symbol in `test_enum` (#99519)
authorNikita Sobolev <mail@sobolevn.me>
Wed, 16 Nov 2022 14:06:37 +0000 (17:06 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2022 14:06:37 +0000 (15:06 +0100)
Lib/test/test_enum.py

index fb3d5ad970fba5a628bf17e25f3d4ca4c75f5313..b6082cf02b18d70361560ff01100f8763d756660 100644 (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):