diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/f2py/tests/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/f2py/tests/util.py b/numpy/f2py/tests/util.py index c115970f4..ae81bbfc4 100644 --- a/numpy/f2py/tests/util.py +++ b/numpy/f2py/tests/util.py @@ -353,15 +353,20 @@ class F2PyTest: needs_f77 = False needs_f90 = False + needs_pyf = False for fn in codes: if str(fn).endswith(".f"): needs_f77 = True elif str(fn).endswith(".f90"): needs_f90 = True + elif str(fn).endswith(".pyf"): + needs_pyf = True if needs_f77 and not has_f77_compiler(): pytest.skip("No Fortran 77 compiler available") if needs_f90 and not has_f90_compiler(): pytest.skip("No Fortran 90 compiler available") + if needs_pyf and not (has_f90_compiler() or has_f77_compiler()): + pytest.skip("No Fortran compiler available") # Build the module if self.code is not None: |