mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-03-11 07:12:47 +00:00
Testsuite: create temporary directory with prefix.
This commit is contained in:
parent
93015a6d84
commit
a8e76ead22
1 changed files with 3 additions and 2 deletions
|
@ -87,8 +87,9 @@ class TestCaseInTempdir(unittest.TestCase):
|
|||
def setUp(self):
|
||||
if not self.temproot:
|
||||
assert(not tempfile.tempdir)
|
||||
self.temproot = tempfile.tempdir = tempfile.mkdtemp()
|
||||
|
||||
self.temproot = tempfile.tempdir = \
|
||||
tempfile.mkdtemp(prefix="test-archivemail")
|
||||
|
||||
def tearDown(self):
|
||||
assert(tempfile.tempdir == self.temproot)
|
||||
if self.temproot:
|
||||
|
|
Loading…
Add table
Reference in a new issue