[Python-checkins] r54462 - python/trunk/Lib/test/test_mailbox.py

neal.norwitz python-checkins at python.org
Tue Mar 20 07:53:24 CET 2007


Author: neal.norwitz
Date: Tue Mar 20 07:53:17 2007
New Revision: 54462

Modified:
   python/trunk/Lib/test/test_mailbox.py
Log:
Try to be a little more resilient to errors.  This might help the test
pass, but my guess is that it won't.  I'm guessing that some other
test is leaving this file open which means it can't be removed
under Windows AFAIK.


Modified: python/trunk/Lib/test/test_mailbox.py
==============================================================================
--- python/trunk/Lib/test/test_mailbox.py	(original)
+++ python/trunk/Lib/test/test_mailbox.py	Tue Mar 20 07:53:17 2007
@@ -694,7 +694,7 @@
         self._box.close()
         self._delete_recursively(self._path)
         for lock_remnant in glob.glob(self._path + '.*'):
-            os.remove(lock_remnant)
+            test_support.unlink(lock_remnant)
 
     def test_add_from_string(self):
         # Add a string starting with 'From ' to the mailbox
@@ -915,7 +915,7 @@
         self._box.close()
         self._delete_recursively(self._path)
         for lock_remnant in glob.glob(self._path + '.*'):
-            os.remove(lock_remnant)
+            test_support.unlink(lock_remnant)
 
     def test_labels(self):
         # Get labels from the mailbox


More information about the Python-checkins mailing list