diff options
author | wvi <vilibald.wanca@geewa.com> | 2014-09-09 12:50:25 +0200 |
---|---|---|
committer | w-vi <vilibald@wvi.cz> | 2014-09-09 19:45:02 +0200 |
commit | 044db0c002fdf67ca1d2ef019b309a497f6bc815 (patch) | |
tree | 01b8e5ef3b38ca41c6841c28d5adeed7841b1c6a /tests | |
parent | 5153976f02e2cd616b5c6f616e2670059430f530 (diff) | |
download | pycparser-044db0c002fdf67ca1d2ef019b309a497f6bc815.tar.gz |
Fix #33 pragma error when '=' occurs.
'=' added to pppragma_ignore.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_c_lexer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_c_lexer.py b/tests/test_c_lexer.py index 2379536..7f69ac1 100644 --- a/tests/test_c_lexer.py +++ b/tests/test_c_lexer.py @@ -313,6 +313,7 @@ class TestCLexerNoErrors(unittest.TestCase): #pragma {pack: 2, smack: 3} #pragma <includeme.h> "nowit.h" #pragma "string" + #pragma somestring="some_other_string" #pragma id 124124 and numbers 0235495 59 ''' @@ -325,7 +326,7 @@ class TestCLexerNoErrors(unittest.TestCase): self.assertEqual(t1.type, 'INT_CONST_DEC') t2 = self.clex.token() self.assertEqual(t2.type, 'INT_CONST_DEC') - self.assertEqual(t2.lineno, 10) + self.assertEqual(t2.lineno, 11) |