Check that modules are named correctly CLI :: defaults
(capfd, hello_world_f90, monkeypatch)
| 223 | @pytest.mark.skipif(sys.version_info <= (3, 12), reason="Python 3.12 required") |
| 224 | @pytest.mark.slow |
| 225 | def test_untitled_cli(capfd, hello_world_f90, monkeypatch): |
| 226 | """Check that modules are named correctly |
| 227 | |
| 228 | CLI :: defaults |
| 229 | """ |
| 230 | ipath = Path(hello_world_f90) |
| 231 | monkeypatch.setattr(sys, "argv", f"f2py --backend meson -c {ipath}".split()) |
| 232 | with util.switchdir(ipath.parent): |
| 233 | compiler_check_f2pycli() |
| 234 | out, _ = capfd.readouterr() |
| 235 | assert "untitledmodule.c" in out |
| 236 | |
| 237 | @pytest.mark.slow |
| 238 | def test_no_distutils_backend(capfd, hello_world_f90, monkeypatch): |
nothing calls this directly
no test coverage detected
searching dependent graphs…