Commit 8b3c3733 authored by Stefan Behnel's avatar Stefan Behnel

Try to fix test on Windows.

parent 11c943fb
...@@ -7,13 +7,13 @@ PYTHON package_test.py ...@@ -7,13 +7,13 @@ PYTHON package_test.py
import os.path import os.path
with open("pkg/test.c.dep", "r") as f: with open(os.path.join("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 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: with open(os.path.join("pkg", "sub", "test.c.dep"), "r") as f:
contents = f.read().replace("\\\n", " ").replace("\n", " ") contents = f.read().replace("\\\n", " ").replace("\n", " ")
contents = [os.path.relpath(entry, '.') contents = [os.path.relpath(entry, '.')
......
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