MCPcopy Create free account
hub / github.com/numpy/numpy / test_npdistop

Function test_npdistop

numpy/f2py/tests/test_f2py2e.py:736–748  ·  view source on GitHub ↗

CLI :: -c

(hello_world_f90, monkeypatch)

Source from the content-addressed store, hash-verified

734
735@pytest.mark.xfail(reason="Consistently fails on CI.")
736def test_npdistop(hello_world_f90, monkeypatch):
737 """
738 CLI :: -c
739 """
740 ipath = Path(hello_world_f90)
741 monkeypatch.setattr(sys, "argv", f'f2py -m blah {ipath} -c'.split())
742
743 with util.switchdir(ipath.parent):
744 f2pycli()
745 cmd_run = shlex.split("python -c \"import blah; blah.hi()\"")
746 rout = subprocess.run(cmd_run, capture_output=True, encoding='UTF-8')
747 eout = ' Hello World\n'
748 assert rout.stdout == eout
749
750
751# Numpy distutils flags

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected