(self, tmpdir)
| 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) |