MCPcopy Index your code
hub / github.com/numpy/numpy / test_untitled_cli

Function test_untitled_cli

numpy/f2py/tests/test_f2py2e.py:225–235  ·  view source on GitHub ↗

Check that modules are named correctly CLI :: defaults

(capfd, hello_world_f90, monkeypatch)

Source from the content-addressed store, hash-verified

223@pytest.mark.skipif(sys.version_info <= (3, 12), reason="Python 3.12 required")
224@pytest.mark.slow
225def test_untitled_cli(capfd, hello_world_f90, monkeypatch):
226 """Check that modules are named correctly
227
228 CLI :: defaults
229 """
230 ipath = Path(hello_world_f90)
231 monkeypatch.setattr(sys, "argv", f"f2py --backend meson -c {ipath}".split())
232 with util.switchdir(ipath.parent):
233 compiler_check_f2pycli()
234 out, _ = capfd.readouterr()
235 assert "untitledmodule.c" in out
236
237@pytest.mark.slow
238def test_no_distutils_backend(capfd, hello_world_f90, monkeypatch):

Callers

nothing calls this directly

Calls 2

compiler_check_f2pycliFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…