summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-01-25 23:52:43 (GMT)
committerGitHub <noreply@github.com>2022-01-25 23:52:43 (GMT)
commit072f4a473e861c6c987650f08990c0ed1f76715f (patch)
tree721edf29556c082af5e8defeda8799764518e075
parenta27505345e34d462139f5f8b6b5e7c9a59955150 (diff)
downloadcpython-072f4a473e861c6c987650f08990c0ed1f76715f.zip
cpython-072f4a473e861c6c987650f08990c0ed1f76715f.tar.gz
cpython-072f4a473e861c6c987650f08990c0ed1f76715f.tar.bz2
bpo-46431: use raw string for regex in test (GH-30901)
-rw-r--r--Lib/test/test_exception_group.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exception_group.py b/Lib/test/test_exception_group.py
index bbfce94..b7b53bb 100644
--- a/Lib/test/test_exception_group.py
+++ b/Lib/test/test_exception_group.py
@@ -22,7 +22,7 @@ class TestExceptionGroupTypeHierarchy(unittest.TestCase):
class BadConstructorArgs(unittest.TestCase):
def test_bad_EG_construction__too_many_args(self):
- MSG = 'BaseExceptionGroup.__new__\(\) takes exactly 2 arguments'
+ MSG = r'BaseExceptionGroup.__new__\(\) takes exactly 2 arguments'
with self.assertRaisesRegex(TypeError, MSG):
ExceptionGroup('no errors')
with self.assertRaisesRegex(TypeError, MSG):