diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-11-16 14:06:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 14:06:37 (GMT) |
commit | 5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d (patch) | |
tree | fabb830698ce08a14af8025f79e43f7fe1bc3368 /Lib/test/test_enum.py | |
parent | 00437ad30454005bc82fca75dfbabf6c95f3ea6a (diff) | |
download | cpython-5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d.zip cpython-5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d.tar.gz cpython-5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d.tar.bz2 |
gh-99518: Fix escape symbol in `test_enum` (#99519)
Diffstat (limited to 'Lib/test/test_enum.py')
-rw-r--r-- | Lib/test/test_enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |