Skip to content

Commit a4bd4a8

Browse files
committed
Revert "TST: no longer skip test if failed compilation"
This reverts commit 9125598.
1 parent 0b699b6 commit a4bd4a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

numpy/f2py/tests/util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,10 @@ def build_meson(source_files, module_name=None, **kwargs):
326326
# Compile the module
327327
# NOTE: Catch-all since without distutils it is hard to determine which
328328
# compiler stack is on the CI
329-
backend.compile()
329+
try:
330+
backend.compile()
331+
except:
332+
pytest.skip("Failed to compile module")
330333

331334
# Import the compiled module
332335
sys.path.insert(0, f"{build_dir}/{backend.meson_build_dir}")

0 commit comments

Comments
 (0)