[Python-checkins] r79992 - in python/branches/py3k: Lib/distutils/tests/support.py Misc/NEWS

tarek.ziade python-checkins at python.org
Mon Apr 12 10:23:49 CEST 2010


Author: tarek.ziade
Date: Mon Apr 12 10:23:49 2010
New Revision: 79992

Log:
Fixed #8375 - test_distutils now checks what remains to be cleaned up during tearDown

Modified:
   python/branches/py3k/Lib/distutils/tests/support.py
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/distutils/tests/support.py
==============================================================================
--- python/branches/py3k/Lib/distutils/tests/support.py	(original)
+++ python/branches/py3k/Lib/distutils/tests/support.py	Mon Apr 12 10:23:49 2010
@@ -63,6 +63,8 @@
         super().tearDown()
         while self.tempdirs:
             d = self.tempdirs.pop()
+            if not os.path.exists(d):
+                continue
             shutil.rmtree(d, os.name in ('nt', 'cygwin'))
 
     def mkdtemp(self):

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Mon Apr 12 10:23:49 2010
@@ -312,6 +312,9 @@
 Library
 -------
 
+- Issue #8375: test_distutils now checks if the temporary directory are still
+  present before it cleans them.
+
 - Issue #8374: Update the internal alias table in the :mod:`locale` module
   to cover recent locale changes and additions.
 


More information about the Python-checkins mailing list