Commit 52e5f7dd authored by Neal Norwitz's avatar Neal Norwitz

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.
parent 657c4d2e
...@@ -694,7 +694,7 @@ class _TestMboxMMDF(TestMailbox): ...@@ -694,7 +694,7 @@ class _TestMboxMMDF(TestMailbox):
self._box.close() self._box.close()
self._delete_recursively(self._path) self._delete_recursively(self._path)
for lock_remnant in glob.glob(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): def test_add_from_string(self):
# Add a string starting with 'From ' to the mailbox # Add a string starting with 'From ' to the mailbox
...@@ -915,7 +915,7 @@ class TestBabyl(TestMailbox): ...@@ -915,7 +915,7 @@ class TestBabyl(TestMailbox):
self._box.close() self._box.close()
self._delete_recursively(self._path) self._delete_recursively(self._path)
for lock_remnant in glob.glob(self._path + '.*'): for lock_remnant in glob.glob(self._path + '.*'):
os.remove(lock_remnant) test_support.unlink(lock_remnant)
def test_labels(self): def test_labels(self):
# Get labels from the mailbox # Get labels from the mailbox
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment