diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-01-25 23:52:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 23:52:43 (GMT) |
commit | 072f4a473e861c6c987650f08990c0ed1f76715f (patch) | |
tree | 721edf29556c082af5e8defeda8799764518e075 | |
parent | a27505345e34d462139f5f8b6b5e7c9a59955150 (diff) | |
download | cpython-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.py | 2 |
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): |