summaryrefslogtreecommitdiff
path: root/tests/test_c_parser.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2018-07-25 05:36:22 -0700
committerEli Bendersky <eliben@gmail.com>2018-07-25 05:36:22 -0700
commit8ff8088cdce7906b1848aa6d3163e6f937f7ff1d (patch)
tree8c158c404dcddaaa74e83692201a1dae55aa8a06 /tests/test_c_parser.py
parentcecb63890ca13253060540832d94b640b70a7c47 (diff)
downloadpycparser-8ff8088cdce7906b1848aa6d3163e6f937f7ff1d.tar.gz
Trim whitespace in test file
Diffstat (limited to 'tests/test_c_parser.py')
-rwxr-xr-xtests/test_c_parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_c_parser.py b/tests/test_c_parser.py
index fd85c0d..5b9db6e 100755
--- a/tests/test_c_parser.py
+++ b/tests/test_c_parser.py
@@ -1009,10 +1009,10 @@ class TestCParser_fundamentals(TestCParser_base):
def test_struct_empty(self):
"""
Tests that parsing an empty struct works.
-
+
Empty structs do NOT follow C99 (See 6.2.5-20 of the C99 standard).
- This is nevertheless supported by some compilers (clang, gcc),
- especially when using FORTIFY code.
+ This is nevertheless supported by some compilers (clang, gcc),
+ especially when using FORTIFY code.
Some compilers (visual) will fail to compile with an error.
"""
# an empty struct. This is NOT C99 compliant
@@ -1392,7 +1392,7 @@ class TestCParser_fundamentals(TestCParser_base):
self.assertTrue(isinstance(s1_ast.ext[1].body.block_items[2], Pragma))
self.assertEqual(s1_ast.ext[1].body.block_items[2].string, '')
self.assertEqual(s1_ast.ext[1].body.block_items[2].coord.line, 6)
-
+
self.assertTrue(isinstance(s1_ast.ext[2].type.type.decls[0], Pragma))
self.assertEqual(s1_ast.ext[2].type.type.decls[0].string, 'baz')
self.assertEqual(s1_ast.ext[2].type.type.decls[0].coord.line, 9)