summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhodbn <hodbn@users.noreply.github.com>2020-08-18 08:22:03 -0700
committerGitHub <noreply@github.com>2020-08-18 08:22:03 -0700
commit210b08971735d543697fd21dd5cd8547ef5c13a1 (patch)
tree009979484992389fe98818960a530dd392393051 /tests
parent6da5009936d0c220b14f8c70deb0a2c7f82ac922 (diff)
downloadpycparser-210b08971735d543697fd21dd5cd8547ef5c13a1.tar.gz
Fix #349: convert to raw strings in lexer tests (#389)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_c_lexer.py4
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):