8000 MAINT: Cleanup an F2PY test for backports · numpy/numpy@8b95b6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b95b6d

Browse files
committed
MAINT: Cleanup an F2PY test for backports
1 parent 1a7e80f commit 8b95b6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

numpy/f2py/tests/test_f2py2e.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import pytest
77

88
from . import util
9+
from numpy.testing import assert_warns
910
from numpy.f2py.f2py2e import main as f2pycli
11+
from numpy.exceptions import VisibleDeprecationWarning
1012

1113
#########################
1214
# CLI utils and classes #
@@ -198,14 +200,15 @@ def test_gen_pyf_no_overwrite(capfd, hello_world_f90, monkeypatch):
198200
assert "Use --overwrite-signature to overwrite" in err
199201

200202

201-
@pytest.mark.skipif((platform.system() != 'Linux') and (sys.version_info <= (3, 12)), reason='Compiler and 3.12 required')
203+
@pytest.mark.skipif(platform.system() != 'Linux', reason = "Needs a compiler")
204+
@pytest.mark.filterwarnings("ignore")
202205
def test_untitled_cli(capfd, hello_world_f90, monkeypatch):
203206
"""Check that modules are named correctly
204207
205208
CLI :: defaults
206209
"""
207210
ipath = Path(hello_world_f90)
208-
monkeypatch.setattr(sys, "argv", f"f2py --backend meson -c {ipath}".split())
211+
monkeypatch.setattr(sys, "argv", f"f2py -c {ipath}".split())
209212
with util.switchdir(ipath.parent):
210213
f2pycli()
211214
out, _ = capfd.readouterr()

0 commit comments

Comments
 (0)
0