From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 25 Jan 2022 23:52:43 +0000 (+0000) Subject: bpo-46431: use raw string for regex in test (GH-30901) X-Git-Tag: v3.11.0a5~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=072f4a473e861c6c987650f08990c0ed1f76715f;p=thirdparty%2FPython%2Fcpython.git bpo-46431: use raw string for regex in test (GH-30901) --- diff --git a/Lib/test/test_exception_group.py b/Lib/test/test_exception_group.py index bbfce944c176..b7b53bb2f0ec 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):