summaryrefslogtreecommitdiff
path: root/Lib/test/test_mailbox.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-03-20 06:53:17 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-03-20 06:53:17 +0000
commit52e5f7dd81636862c81cd518f90c692412433d41 (patch)
treee96e651e5443888db3dba3becd447999460a1ad6 /Lib/test/test_mailbox.py
parent657c4d2e73d035102539e2104e929b461168eaba (diff)
downloadcpython-52e5f7dd81636862c81cd518f90c692412433d41.tar.gz
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.
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r--Lib/test/test_mailbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index fe186fa4ef..175c291a12 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -694,7 +694,7 @@ class _TestMboxMMDF(TestMailbox):
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 @@ class TestBabyl(TestMailbox):
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