summaryrefslogtreecommitdiff
path: root/tests/test_general.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-03-14 06:20:58 +0200
committerEli Bendersky <eliben@gmail.com>2012-03-14 06:20:58 +0200
commita2bafdebaa22eb092c6ff459b66fe927a2bcf2f6 (patch)
treee006fde806b43b52143cdf2c8d29173b4826d05c /tests/test_general.py
parent897898a9d1bbebbbfdb3f76c60f79ab11961e236 (diff)
downloadpycparser-a2bafdebaa22eb092c6ff459b66fe927a2bcf2f6.tar.gz
make test_general.py succeed also when run from the tests/ dir
Diffstat (limited to 'tests/test_general.py')
-rw-r--r--tests/test_general.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_general.py b/tests/test_general.py
index 4b62002..bde6798 100644
--- a/tests/test_general.py
+++ b/tests/test_general.py
@@ -36,7 +36,9 @@ class TestParsing(unittest.TestCase):
ast2 = parse_file(self._find_file('year.c'), use_cpp=True,
cpp_path=CPPPATH,
- cpp_args=r'-Iutils/fake_libc_include')
+ cpp_args=[
+ r'-Iutils/fake_libc_include',
+ r'-I../utils/fake_libc_include'])
self.failUnless(isinstance(ast2, c_ast.FileAST))