summaryrefslogtreecommitdiff
path: root/numpy/tests/test_scripts.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/tests/test_scripts.py')
-rw-r--r--numpy/tests/test_scripts.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/tests/test_scripts.py b/numpy/tests/test_scripts.py
index b48e3f3f7..c7bb125b3 100644
--- a/numpy/tests/test_scripts.py
+++ b/numpy/tests/test_scripts.py
@@ -60,6 +60,10 @@ def run_command(cmd, check_code=True):
@skipif_inplace
def test_f2py():
# test that we can run f2py script
- f2py_cmd = 'f2py' + basename(sys.executable)[6:]
- code, stdout, stderr = run_command([f2py_cmd, '-v'])
+ if sys.platform == 'win32':
+ f2py_cmd = r"%s\Scripts\f2py.py" % dirname(sys.executable)
+ code, stdout, stderr = run_command([sys.executable, f2py_cmd, '-v'])
+ else:
+ f2py_cmd = 'f2py' + basename(sys.executable)[6:]
+ code, stdout, stderr = run_command([f2py_cmd, '-v'])
assert_equal(stdout.strip(), asbytes('2'))