Skip to content

Commit

Permalink
TST: on Windows run f2py from the Scripts directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Aug 1, 2015
1 parent 4ec0b91 commit dd22001
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions numpy/tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

0 comments on commit dd22001

Please sign in to comment.