summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-08-10 08:27:12 +0300
committerEli Bendersky <eliben@gmail.com>2012-08-10 08:27:12 +0300
commitd96498147af7b2ee39a73956efe4ec37586b0a04 (patch)
tree88e87698153097fc9b0f8f984aaff73a27ea5ed1
parente40ae0a602b6dcbaca92555c82bff4e743ac2950 (diff)
downloadpycparser-d96498147af7b2ee39a73956efe4ec37586b0a04.tar.gz
finalize issue 74 fix
-rw-r--r--CHANGES1
-rw-r--r--tests/test_general.py4
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index fb8b632..69a1d73 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,7 @@
- Issues 64 & 65: added some more headers and typedefs to fake includes.
- Refactoring the cpp invocation in parse_file into a separate function, which
can also be used as a utility.
+ - Issue 74: some Windows include paths were handled incorrectly.
+ Version 2.07 (16.06.2012)
diff --git a/tests/test_general.py b/tests/test_general.py
index 9e64a28..587284a 100644
--- a/tests/test_general.py
+++ b/tests/test_general.py
@@ -43,6 +43,10 @@ class TestParsing(unittest.TestCase):
self.assertTrue(isinstance(ast2, c_ast.FileAST))
def test_cpp_funkydir(self):
+ # This test contains Windows specific path escapes
+ if sys.platform != 'win32':
+ return
+
c_files_path = os.path.join('tests', 'c_files')
ast = parse_file(self._find_file('simplemain.c'), use_cpp=True,
cpp_path=CPPPATH, cpp_args='-I%s' % c_files_path)