Lines Matching refs:rmtree
183 self.addCleanup(os_helper.rmtree, d)
196 shutil.rmtree(victim)
205 self.assertRaises(OSError, shutil.rmtree, link)
211 shutil.rmtree(link, onerror=onerror)
234 shutil.rmtree(dir1)
247 self.assertRaises(OSError, shutil.rmtree, link)
253 shutil.rmtree(link, onerror=onerror)
276 shutil.rmtree(dir1)
284 self.assertRaises(FileNotFoundError, shutil.rmtree, filename)
286 shutil.rmtree(filename, ignore_errors=True)
293 shutil.rmtree(filename)
297 shutil.rmtree(filename, ignore_errors=True)
302 shutil.rmtree(filename, onerror=onerror)
321 self.addCleanup(shutil.rmtree, TESTFN)
340 shutil.rmtree(TESTFN, onerror=self.check_args_to_onerror)
346 # test_rmtree_errors deliberately runs rmtree
348 # This function is run when shutil.rmtree fails.
384 shutil.rmtree(TESTFN)
395 self.assertTrue(shutil.rmtree.avoids_symlink_attacks)
405 self.assertRaises(Called, shutil.rmtree, d)
410 self.assertFalse(shutil.rmtree.avoids_symlink_attacks)
423 shutil.rmtree(victim, dir_fd=dir_fd)
430 shutil.rmtree(tmp_dir, dir_fd=0)
437 self.assertRaises(NotADirectoryError, shutil.rmtree, path)
449 self.assertRaises(OSError, shutil.rmtree, dst)
450 shutil.rmtree(dst, ignore_errors=True)
452 shutil.rmtree(TESTFN, ignore_errors=True)
463 self.assertRaises(OSError, shutil.rmtree, dst)
464 shutil.rmtree(dst, ignore_errors=True)
466 shutil.rmtree(TESTFN, ignore_errors=True)
474 self.addCleanup(shutil.rmtree, src_dir)
475 self.addCleanup(shutil.rmtree, os.path.dirname(dst_dir))
493 self.addCleanup(shutil.rmtree, src_dir)
494 self.addCleanup(shutil.rmtree, dst_dir)
574 shutil.rmtree(dst_dir)
583 shutil.rmtree(dst_dir)
607 shutil.rmtree(dst_dir)
609 shutil.rmtree(src_dir)
610 shutil.rmtree(os.path.dirname(dst_dir))
659 self.addCleanup(shutil.rmtree, tmp_dir)
667 self.addCleanup(os_helper.rmtree, restrictive_subdir)
688 self.addCleanup(shutil.rmtree, src_dir)
689 self.addCleanup(shutil.rmtree, os.path.dirname(dst_dir))
737 shutil.rmtree(TESTFN, ignore_errors=True)
738 shutil.rmtree(TESTFN2, ignore_errors=True)
805 self.addCleanup(shutil.rmtree, dst_dir, True)
814 self.addCleanup(shutil.rmtree, base_dir, ignore_errors=True)
1244 shutil.rmtree(TESTFN, ignore_errors=True)
1264 shutil.rmtree(TESTFN, ignore_errors=True)
2055 os_helper.rmtree(dst_dir)
2102 os_helper.rmtree(TESTFN)
2114 os_helper.rmtree(TESTFN)
2232 os_helper.rmtree(TESTFN_SRC)
2235 os_helper.rmtree(TESTFN_DST)
2716 'copy', 'copy2', 'copytree', 'move', 'rmtree', 'Error',