[Python-checkins] r68361 - python/trunk/Lib/test/test_import.py
antoine.pitrou
python-checkins at python.org
Tue Jan 6 19:34:09 CET 2009
Author: antoine.pitrou
Date: Tue Jan 6 19:34:08 2009
New Revision: 68361
Log:
Use shutil.rmtree rather than os.rmdir.
Modified:
python/trunk/Lib/test/test_import.py
Modified: python/trunk/Lib/test/test_import.py
==============================================================================
--- python/trunk/Lib/test/test_import.py (original)
+++ python/trunk/Lib/test/test_import.py Tue Jan 6 19:34:08 2009
@@ -269,7 +269,7 @@
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()
More information about the Python-checkins
mailing list