summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-01-06 18:34:08 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-01-06 18:34:08 (GMT)
commit09cafb6335f84d5b2b1264ac2ee29585ed960314 (patch)
tree4fd17e39484513474454ec3ad0de1e2d1b78a455 /Lib/test/test_import.py
parente96d4ea4e235645452ae8a6c8ab557d31d2bb485 (diff)
downloadcpython-09cafb6335f84d5b2b1264ac2ee29585ed960314.zip
cpython-09cafb6335f84d5b2b1264ac2ee29585ed960314.tar.gz
cpython-09cafb6335f84d5b2b1264ac2ee29585ed960314.tar.bz2
Use shutil.rmtree rather than os.rmdir.
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 7318a9e..db9c8ef 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()