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

Function test_gh23598_warn

numpy/f2py/tests/test_f2py2e.py:145–155  ·  view source on GitHub ↗
(capfd, gh23598_warn, monkeypatch)

Source from the content-addressed store, hash-verified

143
144
145def test_gh23598_warn(capfd, gh23598_warn, monkeypatch):
146 foutl = get_io_paths(gh23598_warn, mname="test")
147 ipath = foutl.f90inp
148 monkeypatch.setattr(
149 sys, "argv",
150 f'f2py {ipath} -m test'.split())
151
152 with util.switchdir(ipath.parent):
153 f2pycli() # Generate files
154 wrapper = foutl.wrap90.read_text()
155 assert "intproductf2pywrap, intpr" not in wrapper
156
157
158def test_gen_pyf(capfd, hello_world_f90, monkeypatch):

Callers

nothing calls this directly

Calls 2

get_io_pathsFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected