Commit 62b7ac53 authored by Stefan Behnel's avatar Stefan Behnel

Fix test on Windows.

parent b6f927e4
......@@ -8,13 +8,13 @@ PYTHON package_test.py
import os.path
with open("pkg/test.c.dep", "r") as f:
contents = f.read().replace("\\\n", " ").replace("\\\n", " ")
contents = f.read().replace("\\\n", " ").replace("\n", " ")
assert sorted(contents.split()) == sorted(['test.c:', os.path.join('sub', 'incl.pxi'), 'test.pxd', 'test.pyx']), contents
with open("pkg/sub/test.c.dep", "r") as f:
contents = f.read().replace("\n", " ").replace("\\", "")
contents = f.read().replace("\\\n", " ").replace("\n", " ")
contents = [os.path.relpath(entry, '.')
if os.path.isabs(entry) else entry for entry in contents.split()]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment