From 8a6bcbcfe8db6cf2fd784631b480d5865077ad98 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 19 Aug 2020 08:23:04 -0600 Subject: MAINT: Use numpy version for f2py version. Because f2py is released as part of numpy, the old svn versioning no longer makes sense and it was decided to use the numpy version instead. --- numpy/tests/test_scripts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/tests/test_scripts.py') diff --git a/numpy/tests/test_scripts.py b/numpy/tests/test_scripts.py index a0f2ba70a..e67a82947 100644 --- a/numpy/tests/test_scripts.py +++ b/numpy/tests/test_scripts.py @@ -38,9 +38,9 @@ def find_f2py_commands(): def test_f2py(f2py_cmd): # test that we can run f2py script stdout = subprocess.check_output([f2py_cmd, '-v']) - assert_equal(stdout.strip(), b'2') + assert_equal(stdout.strip(), np.__version__.encode('ascii')) def test_pep338(): stdout = subprocess.check_output([sys.executable, '-mnumpy.f2py', '-v']) - assert_equal(stdout.strip(), b'2') + assert_equal(stdout.strip(), np.__version__.encode('ascii')) -- cgit v1.2.1