From: Antoine Pitrou Date: Tue, 6 Jan 2009 18:34:08 +0000 (+0000) Subject: Use shutil.rmtree rather than os.rmdir. X-Git-Tag: v2.7a1~2370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09cafb6335f84d5b2b1264ac2ee29585ed960314;p=thirdparty%2FPython%2Fcpython.git Use shutil.rmtree rather than os.rmdir. --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 7318a9e7e049..db9c8ef6fc06 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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()