diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-12-31 19:02:03 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-31 19:13:22 -0700 |
commit | 6a871df50947c4ebda79a966fba09b5336e1e061 (patch) | |
tree | 8427375d5098a200f913d69ec46f85cc8ed65a11 | |
parent | fd2b0d6c58356dd22b38d5e57e32f8107d9362a5 (diff) | |
download | numpy-6a871df50947c4ebda79a966fba09b5336e1e061.tar.gz |
BUG: Fix test_f2py so it runs correctly in runtests.py.
The loop checking for command line versions can terminate early as the
errors are not always of OSError type. In particular, runtests.py may
only store the command with the python version and the check for that is
not executed, leading to a test failure.
-rw-r--r-- | numpy/tests/test_scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/tests/test_scripts.py b/numpy/tests/test_scripts.py index 74efd2650..434f17a4a 100644 --- a/numpy/tests/test_scripts.py +++ b/numpy/tests/test_scripts.py @@ -77,6 +77,6 @@ def test_f2py(): assert_equal(stdout.strip(), asbytes('2')) success = True break - except OSError: + except: pass assert_(success, "Warning: neither %s nor %s found in path" % f2py_cmds) |