Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FIX: check for f77 compiler before test is run
  • Loading branch information
mckib2 committed Feb 4, 2021
commit 07730c1be779919aafbb16d7f3b737cc56c76848
9 changes: 8 additions & 1 deletion numpy/distutils/tests/test_build_ext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'''Tests for numpy.distutils.build_ext.'''

import os
import shutil
import subprocess
import sys
from textwrap import indent, dedent
Expand All @@ -13,6 +12,14 @@ def test_multi_fortran_libs_link(tmp_path):
Ensures multiple "fake" static libraries are correctly linked.
see gh-18295
'''

# We need to make sure we actually have an f77 compiler.
# This is nontrivial, so we'll borrow the utilities
# from f2py tests:
from numpy.f2py.tests.util import has_f77_compiler
if not has_f77_compiler():
pytest.skip('No F77 compiler found')

# make some dummy sources
with open(tmp_path / '_dummy1.f', 'w') as fid:
fid.write(indent(dedent('''\
Expand Down