From 6a871df50947c4ebda79a966fba09b5336e1e061 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 31 Dec 2015 19:02:03 -0700 Subject: 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. --- numpy/tests/test_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/tests/test_scripts.py') 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) -- cgit v1.2.1