From 09cafb6335f84d5b2b1264ac2ee29585ed960314 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 6 Jan 2009 18:34:08 +0000 Subject: [PATCH] Use shutil.rmtree rather than os.rmdir. --- Lib/test/test_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 7318a9e7e0..db9c8ef6fc 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() -- 2.50.1