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

Function test_overwrite

numpy/f2py/tests/test_f2py2e.py:440–454  ·  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

438
439
440def test_overwrite(capfd, hello_world_f90, monkeypatch):
441 """Ensures that the build directory can be specified
442
443 CLI :: --overwrite-signature
444 """
445 ipath = Path(hello_world_f90)
446 monkeypatch.setattr(
447 sys, "argv",
448 f'f2py -h faker.pyf {ipath} --overwrite-signature'.split())
449
450 with util.switchdir(ipath.parent):
451 Path("faker.pyf").write_text("Fake news", encoding="ascii")
452 f2pycli()
453 out, _ = capfd.readouterr()
454 assert "Saving signatures to file" in out
455
456
457def test_latexdoc(capfd, hello_world_f90, monkeypatch):

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
write_textMethod · 0.45

Tested by

no test coverage detected