MCPcopy
hub / github.com/pytest-dev/pytest-xdist / test_pycremoval

Method test_pycremoval

testing/test_looponfail.py:87–100  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

85 assert changed
86
87 def test_pycremoval(self, tmp_path: Path) -> None:
88 tmp = tmp_path
89 hello = tmp / "hello.py"
90 hello.touch()
91 sd = StatRecorder([tmp])
92 changed = sd.check()
93 assert not changed
94
95 pycfile = hello.with_suffix(".pyc")
96 pycfile.touch()
97 hello.write_text("world")
98 changed = sd.check()
99 assert changed
100 assert not pycfile.exists()
101
102 def test_waitonchange(
103 self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch

Callers

nothing calls this directly

Calls 2

checkMethod · 0.95
StatRecorderClass · 0.90

Tested by

no test coverage detected