diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-06 18:34:08 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-06 18:34:08 (GMT) |
commit | 09cafb6335f84d5b2b1264ac2ee29585ed960314 (patch) | |
tree | 4fd17e39484513474454ec3ad0de1e2d1b78a455 /Lib/test/test_import.py | |
parent | e96d4ea4e235645452ae8a6c8ab557d31d2bb485 (diff) | |
download | cpython-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.py | 2 |
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() |