diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 88d117f641816d..050d084a97aed1 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2145,7 +2145,7 @@ def test_error_parenthesis(self): # Examples with dencodings s = b'# coding=latin\n(aaaaaaaaaaaaaaaaa\naaaaaaaaaaa\xb5' - self._check_error(s, "'\(' was never closed") + self._check_error(s, r"'\(' was never closed") def test_error_string_literal(self):