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

Function test_npdistop

numpy/f2py/tests/test_f2py2e.py:796–808  ·  view source on GitHub ↗

CLI :: -c

(hello_world_f90, monkeypatch)

Source from the content-addressed store, hash-verified

794
795@pytest.mark.skip(reason="Consistently fails on CI; noisy so skip not xfail.")
796def test_npdistop(hello_world_f90, monkeypatch):
797 """
798 CLI :: -c
799 """
800 ipath = Path(hello_world_f90)
801 monkeypatch.setattr(sys, "argv", f'f2py -m blah {ipath} -c'.split())
802
803 with util.switchdir(ipath.parent):
804 f2pycli()
805 cmd_run = shlex.split(f"{sys.executable} -c \"import blah; blah.hi()\"")
806 rout = subprocess.run(cmd_run, capture_output=True, encoding='UTF-8')
807 eout = ' Hello World\n'
808 assert rout.stdout == eout
809
810
811@pytest.mark.skipif((platform.system() != 'Linux') or sys.version_info <= (3, 12),

Callers

nothing calls this directly

Calls 2

splitMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…