From 5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Wed, 16 Nov 2022 17:06:37 +0300 Subject: gh-99518: Fix escape symbol in `test_enum` (#99519) --- Lib/test/test_enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index fb3d5ad..b6082cf 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): -- cgit v0.12