From 105a430428965551e5463cff8c84cb6cc01a1ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 6 Oct 2024 07:49:14 -0400 Subject: [PATCH] Fix invalid escape sequence SyntaxWarning for '\#' --- tests/testlex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)