summaryrefslogtreecommitdiff
path: root/numpy/tests/test_scripts.py
diff options
context:
space:
mode:
authorChristoph Gohlke <cgohlke@uci.edu>2015-08-01 16:55:03 -0700
committerChristoph Gohlke <cgohlke@uci.edu>2015-08-01 16:55:03 -0700
commitdd220014373f7c0bf0862b5a4548e257858be945 (patch)
tree5c3c3aba094888c0ba5df9a8f7431d26b9700912 /numpy/tests/test_scripts.py
parent4ec0b91a6308b29979935bec1e6ee30417af9eb2 (diff)
downloadnumpy-dd220014373f7c0bf0862b5a4548e257858be945.tar.gz
TST: on Windows run f2py from the Scripts directory
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'))