From: Nikita Sobolev Date: Wed, 16 Nov 2022 14:06:37 +0000 (+0300) Subject: gh-99518: Fix escape symbol in `test_enum` (#99519) X-Git-Tag: v3.12.0a3~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d;p=thirdparty%2FPython%2Fcpython.git gh-99518: Fix escape symbol in `test_enum` (#99519) --- diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index fb3d5ad970fb..b6082cf02b18 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -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):