Commits

Antoine Pitrou committed e2df006

Use shutil.rmtree, since support.rmtree is buggy under Windows

Comments (0)

Files changed (1)

 
     def setUp(self):
         os.mkdir(BASE)
-        self.addCleanup(support.rmtree, BASE)
+        self.addCleanup(shutil.rmtree, BASE)
         os.mkdir(join('dirA'))
         os.mkdir(join('dirB'))
         os.mkdir(join('dirC'))
         self._check_resolve_relative(p, P(BASE, 'dirB', 'fileB'))
         # Now create absolute symlinks
         d = tempfile.mkdtemp(suffix='-dirD')
-        self.addCleanup(support.rmtree, d)
+        self.addCleanup(shutil.rmtree, d)
         os.symlink(os.path.join(d), join('dirA', 'linkX'))
         os.symlink(join('dirB'), os.path.join(d, 'linkY'))
         p = P(BASE, 'dirA', 'linkX', 'linkY', 'fileB')