summaryrefslogtreecommitdiff
path: root/Lib/test/test_mailbox.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-10 15:01:20 +0000
committerGuido van Rossum <guido@python.org>2001-04-10 15:01:20 +0000
commit75ebb29f88def196ec8486c7ad1f717a211dd146 (patch)
tree5549b31b9782cea808da0eb53d24c45a19ce2f1c /Lib/test/test_mailbox.py
parenta5af2148ee7941a033f3ecbc73bc180061416589 (diff)
downloadcpython-git-75ebb29f88def196ec8486c7ad1f717a211dd146.tar.gz
Some other tests, when failing, don't always remove their TESTFN file.
Try to do it for them, so our mkdir() operation doesn't fail.
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r--Lib/test/test_mailbox.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index 382a42e774..1d1a063720 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -2,6 +2,12 @@ import mailbox
import os
import test_support
+# cleanup
+try:
+ os.unlink(test_support.TESTFN)
+except os.error:
+ pass
+
# create a new maildir mailbox to work with:
curdir = os.path.join(test_support.TESTFN, "cur")
newdir = os.path.join(test_support.TESTFN, "new")