diff options
Diffstat (limited to 'Cython/Compiler/Tests/TestCmdLine.py')
-rw-r--r-- | Cython/Compiler/Tests/TestCmdLine.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Cython/Compiler/Tests/TestCmdLine.py b/Cython/Compiler/Tests/TestCmdLine.py index 0961dfa03..290efd1d7 100644 --- a/Cython/Compiler/Tests/TestCmdLine.py +++ b/Cython/Compiler/Tests/TestCmdLine.py @@ -20,7 +20,17 @@ unpatched_exists = os.path.exists def patched_exists(path): # avoid the Cython command raising a file not found error - if path in ('source.pyx', 'file.pyx', 'file1.pyx', 'file2.pyx', 'file3.pyx', 'foo.pyx', 'bar.pyx'): + if path in ( + 'source.pyx', + os.path.join('/work/dir', 'source.pyx'), + os.path.join('my_working_path', 'source.pyx'), + 'file.pyx', + 'file1.pyx', + 'file2.pyx', + 'file3.pyx', + 'foo.pyx', + 'bar.pyx', + ): return True return unpatched_exists(path) |