Skip to content

Commit

Permalink
bpo-46431: use raw string for regex in test (pythonGH-30901)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored Jan 25, 2022
1 parent a275053 commit 072f4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_exception_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_exception_group_is_generic_type(self):

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):
Expand Down

0 comments on commit 072f4a4

Please sign in to comment.