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

Function test_overwrite

numpy/f2py/tests/test_f2py2e.py:462–476  ·  view source on GitHub ↗

Ensures that the build directory can be specified CLI :: --overwrite-signature

(capfd, hello_world_f90, monkeypatch)

Source from the content-addressed store, hash-verified

460
461
462def test_overwrite(capfd, hello_world_f90, monkeypatch):
463 """Ensures that the build directory can be specified
464
465 CLI :: --overwrite-signature
466 """
467 ipath = Path(hello_world_f90)
468 monkeypatch.setattr(
469 sys, "argv",
470 f'f2py -h faker.pyf {ipath} --overwrite-signature'.split())
471
472 with util.switchdir(ipath.parent):
473 Path("faker.pyf").write_text("Fake news", encoding="ascii")
474 f2pycli()
475 out, _ = capfd.readouterr()
476 assert "Saving signatures to file" in out
477
478
479def test_latexdoc(capfd, hello_world_f90, monkeypatch):

Callers

nothing calls this directly

Calls 2

splitMethod · 0.80
write_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…