--- numpy/tests/test_scripts.py.orig	2024-09-07 13:20:58
+++ numpy/tests/test_scripts.py	2024-09-07 13:22:00
@@ -29,7 +29,8 @@
         version = sys.version_info
         major = str(version.major)
         minor = str(version.minor)
-        return ['f2py', 'f2py' + major, 'f2py' + major + '.' + minor]
+        return ['f2py', 'f2py' + major, 'f2py' + major + '.' + minor,
+                'f2py-' + major + '.' + minor]
 
 
 @pytest.mark.skipif(is_inplace, reason="Cannot test f2py command inplace")
