diff --git a/tests/testlex.py b/tests/testlex.py index 7f2adad..454e89e 100755 --- a/tests/testlex.py +++ b/tests/testlex.py @@ -190,7 +190,7 @@ def test_lex_re3(self): "Make sure '#' in rule 't_POUND' is escaped with '\\#'\n") else: msg = ("Invalid regular expression for rule 't_POUND'. missing ), unterminated subpattern at position 0\n" - "ERROR: Make sure '#' in rule 't_POUND' is escaped with '\#'") + r"ERROR: Make sure '#' in rule 't_POUND' is escaped with '\#'") self.assertTrue(check_expected(result, msg, contains=True), result)