(
monkeypatch: pytest.MonkeyPatch, tmp_path: Path
)
| 182 | |
| 183 | @pytest.mark.skipif(sys.version_info >= (3, 10), reason="not needed on >= 3.10") |
| 184 | def test_windows_get_args_for_reloading( |
| 185 | monkeypatch: pytest.MonkeyPatch, tmp_path: Path |
| 186 | ) -> None: |
| 187 | argv = [str(tmp_path / "test.exe"), "run"] |
| 188 | monkeypatch.setattr("sys.executable", str(tmp_path / "python.exe")) |
| 189 | monkeypatch.setattr("sys.argv", argv) |
| 190 | monkeypatch.setattr("__main__.__package__", None) |
| 191 | monkeypatch.setattr("os.name", "nt") |
| 192 | rv = _get_args_for_reloading() |
| 193 | assert rv == argv |
| 194 | |
| 195 | |
| 196 | @pytest.mark.parametrize("find", [_find_stat_paths, _find_watchdog_paths]) |
nothing calls this directly
no test coverage detected