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.
This commit is contained in:
Guido van Rossum 2001-04-10 15:01:20 +00:00
parent a5af2148ee
commit 75ebb29f88

View file

@ -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")