]> granicus.if.org Git - python/commitdiff
Use shutil.rmtree rather than os.rmdir.
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Jan 2009 18:34:08 +0000 (18:34 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Jan 2009 18:34:08 +0000 (18:34 +0000)
Lib/test/test_import.py

index 7318a9e7e049fd461cdaf82c75c35b3a68ca6e18..db9c8ef6fc066a1e972fba73d349c26688ba28cb 100644 (file)
@@ -269,7 +269,7 @@ func_filename = func.func_code.co_filename
             if os.path.exists(file_name):
                 os.remove(file_name)
         if os.path.exists(self.dir_name):
-            os.rmdir(self.dir_name)
+            shutil.rmtree(self.dir_name)
 
     def import_module(self):
         ns = globals()