summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_enum.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-11-16 14:06:37 (GMT)
committerGitHub <noreply@github.com>2022-11-16 14:06:37 (GMT)
commit5cfb7d19f5242c9b8ffd2fe30a24569e85a99e1d (patch)
treefabb830698ce08a14af8025f79e43f7fe1bc3368 /Lib/test/test_enum.py
parent00437ad30454005bc82fca75dfbabf6c95f3ea6a (diff)
downloadcpython-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.py2
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):