diff options
author | Guido van Rossum <guido@python.org> | 2001-04-10 15:01:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-10 15:01:20 (GMT) |
commit | 75ebb29f88def196ec8486c7ad1f717a211dd146 (patch) | |
tree | 5549b31b9782cea808da0eb53d24c45a19ce2f1c /Lib | |
parent | a5af2148ee7941a033f3ecbc73bc180061416589 (diff) | |
download | cpython-75ebb29f88def196ec8486c7ad1f717a211dd146.zip cpython-75ebb29f88def196ec8486c7ad1f717a211dd146.tar.gz cpython-75ebb29f88def196ec8486c7ad1f717a211dd146.tar.bz2 |
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')
-rw-r--r-- | Lib/test/test_mailbox.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index 382a42e..1d1a063 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") |