diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 48ba5032664..d90e2a8af54 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -29,7 +29,7 @@ try: assert re.sub('(.)', re.escape(s), 'x') == s assert re.sub('(.)', lambda m: s, 'x') == s - assert re.sub('(?Px)', '\g\g', 'xx') == 'xxxx' + assert re.sub('(?Px)', '\g\g', 'xx') == 'xxxx' assert re.sub('a', r'\t\n\v\r\f\a\b\B\Z\a\A\w\W\s\S\d\D', 'a') == '\t\n\v\r\f\a\bBZ\aAwWsSdD' assert re.sub('a', '\t\n\v\r\f\a', 'a') == '\t\n\v\r\f\a'