MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_rm_rf

Method test_rm_rf

testing/test_tmpdir.py:317–329  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

315
316class TestRmRf:
317 def test_rm_rf(self, tmp_path):
318 adir = tmp_path / "adir"
319 adir.mkdir()
320 rm_rf(adir)
321
322 assert not adir.exists()
323
324 adir.mkdir()
325 afile = adir / "afile"
326 afile.write_bytes(b"aa")
327
328 rm_rf(adir)
329 assert not adir.exists()
330
331 def test_rm_rf_with_read_only_file(self, tmp_path):
332 """Ensure rm_rf can remove directories with read-only files in them (#5524)"""

Callers

nothing calls this directly

Calls 2

rm_rfFunction · 0.90
mkdirMethod · 0.45

Tested by

no test coverage detected