diff options
author | hodbn <hodbn@users.noreply.github.com> | 2020-08-18 08:22:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 08:22:03 -0700 |
commit | 210b08971735d543697fd21dd5cd8547ef5c13a1 (patch) | |
tree | 009979484992389fe98818960a530dd392393051 | |
parent | 6da5009936d0c220b14f8c70deb0a2c7f82ac922 (diff) | |
download | pycparser-210b08971735d543697fd21dd5cd8547ef5c13a1.tar.gz |
Fix #349: convert to raw strings in lexer tests (#389)
-rw-r--r-- | tests/test_c_lexer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_c_lexer.py b/tests/test_c_lexer.py index d63d6fd..a555dcb 100644 --- a/tests/test_c_lexer.py +++ b/tests/test_c_lexer.py @@ -167,10 +167,10 @@ class TestCLexerNoErrors(unittest.TestCase): ['STRING_LITERAL']) # The lexer is permissive and allows decimal escapes (not just octal) self.assertTokensTypes( - '"jx\9"', + r'"jx\9"', ['STRING_LITERAL']) self.assertTokensTypes( - '"fo\9999999"', + r'"fo\9999999"', ['STRING_LITERAL']) def test_mess(self): |