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

Function f2cmap_f90

numpy/f2py/tests/test_f2py2e.py:102–110  ·  view source on GitHub ↗

Generates a single f90 file for testing

(tmpdir_factory)

Source from the content-addressed store, hash-verified

100
101@pytest.fixture(scope="session")
102def f2cmap_f90(tmpdir_factory):
103 """Generates a single f90 file for testing"""
104 fdat = util.getpath("tests", "src", "f2cmap", "isoFortranEnvMap.f90").read_text()
105 f2cmap = util.getpath("tests", "src", "f2cmap", ".f2py_f2cmap").read_text()
106 fn = tmpdir_factory.getbasetemp() / "f2cmap.f90"
107 fmap = tmpdir_factory.getbasetemp() / "mapfile"
108 fn.write_text(fdat, encoding="ascii")
109 fmap.write_text(f2cmap, encoding="ascii")
110 return fn
111
112
113def test_gh22819_cli(capfd, gh22819_cli, monkeypatch):

Callers

nothing calls this directly

Calls 1

write_textMethod · 0.45

Tested by

no test coverage detected