mirror of
https://github.com/python/cpython.git
synced 2025-10-16 11:49:57 +00:00
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:
parent
a5af2148ee
commit
75ebb29f88
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,12 @@ import mailbox
|
||||||
import os
|
import os
|
||||||
import test_support
|
import test_support
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
try:
|
||||||
|
os.unlink(test_support.TESTFN)
|
||||||
|
except os.error:
|
||||||
|
pass
|
||||||
|
|
||||||
# create a new maildir mailbox to work with:
|
# create a new maildir mailbox to work with:
|
||||||
curdir = os.path.join(test_support.TESTFN, "cur")
|
curdir = os.path.join(test_support.TESTFN, "cur")
|
||||||
newdir = os.path.join(test_support.TESTFN, "new")
|
newdir = os.path.join(test_support.TESTFN, "new")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue