diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index 1eea12fee82..5c56a28e83e 100644 --- a/Lib/test/test_sre.py +++ b/Lib/test/test_sre.py @@ -50,9 +50,9 @@ def test(expression, result, exception=None): test(r"""sre.match("\%03o" % i, chr(i)) != None""", 1) test(r"""sre.match("\%03o0" % i, chr(i)+"0") != None""", 1) test(r"""sre.match("\%03o8" % i, chr(i)+"8") != None""", 1) - test(r"""sre.match("\x%02x" % i, chr(i)) != None""", 1) - test(r"""sre.match("\x%02x0" % i, chr(i)+"0") != None""", 1) - test(r"""sre.match("\x%02xz" % i, chr(i)+"z") != None""", 1) + test(r"""sre.match(r"\x%02x" % i, chr(i)) != None""", 1) + test(r"""sre.match(r"\x%02x0" % i, chr(i)+"0") != None""", 1) + test(r"""sre.match(r"\x%02xz" % i, chr(i)+"z") != None""", 1) test(r"""sre.match("\911", "")""", None, sre.error) #