def test_remove_removes_readonly_dir(self):
readonly_dir = self.tmpdir.join('readonlydir').ensure(dir=1)
-> readonly_dir.chmod(0500)
readonly_dir.remove()
assert not readonly_dir.check(exists=1)