(self, tmp_path)
| 315 | |
| 316 | class 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)""" |