MCPcopy
hub / github.com/pytest-dev/pytest / test_remove_removes_readonly_dir

Method test_remove_removes_readonly_dir

testing/_py/test_local.py:592–596  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

590 assert not readonly_file.check(exists=1)
591
592 def test_remove_removes_readonly_dir(self, tmpdir):
593 readonly_dir = tmpdir.join("readonlydir").ensure(dir=1)
594 readonly_dir.chmod(int("500", 8))
595 readonly_dir.remove()
596 assert not readonly_dir.check(exists=1)
597
598 def test_remove_removes_dir_and_readonly_file(self, tmpdir):
599 readonly_dir = tmpdir.join("readonlydir").ensure(dir=1)

Callers

nothing calls this directly

Calls 6

intClass · 0.85
ensureMethod · 0.80
joinMethod · 0.80
chmodMethod · 0.80
removeMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected