From db58dacce668e0d50ef314862e1df674351b39a4 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Thu, 8 Feb 2018 22:42:06 -0500 Subject: [PATCH] Fix invalid escape sequence \s in test_escapes --- tests/test_lex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_lex.py b/tests/test_lex.py index c9009b2..8c236c5 100644 --- a/tests/test_lex.py +++ b/tests/test_lex.py @@ -304,11 +304,11 @@ def test_nospace(): def test_escapes(): """ Ensure we can escape things """ - entry = tokenize("(foo \"foo\\n\")")[0] + entry = tokenize(r"""(foo "foo\n")""")[0] assert entry[1] == "foo\n" - entry = tokenize("(foo \"foo\\s\")")[0] - assert entry[1] == "foo\\s" + entry = tokenize(r"""(foo r"foo\s")""")[0] + assert entry[1] == r"foo\s" def test_unicode_escapes():