Skip to content

Commit f4f7d4d

Browse files
Update Lib/test/test_re.py
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent d1d582e commit f4f7d4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_re.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,7 @@ def s_int(scanner, token): return int(token)
16421642
def test_bug_gh140797(self):
16431643
# gh140797: Capturing groups are not allowed in re.Scanner
16441644

1645-
msg = "Cannot use capturing groups in re.Scanner"
1645+
msg = r"Cannot use capturing groups in re\.Scanner"
16461646
# Capturing group throws an error
16471647
with self.assertRaisesRegex(ValueError, msg):
16481648
Scanner([("(a)b", None)])

0 commit comments

Comments
 (0)