mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
zfec: disable the feature of leaving unit test tmp dirs lying around for post-mortem analysis
fixes #41 in the allmydata.org trac http://allmydata.org/trac/tahoe/ticket/41
This commit is contained in:
parent
ea52a9cd7d
commit
21db2bfa3f
@ -123,7 +123,7 @@ class FileFec(unittest.TestCase):
|
||||
|
||||
fsize = len(teststr)
|
||||
|
||||
tempdir = zfec.util.fileutil.NamedTemporaryDirectory(cleanup=False)
|
||||
tempdir = zfec.util.fileutil.NamedTemporaryDirectory(cleanup=True)
|
||||
try:
|
||||
tempf = tempdir.file(TESTFNAME, 'w+b')
|
||||
tempf.write(teststr)
|
||||
@ -190,7 +190,7 @@ class FileFec(unittest.TestCase):
|
||||
|
||||
class Cmdline(unittest.TestCase):
|
||||
def test_basic(self, noisy=VERBOSE):
|
||||
tempdir = zfec.util.fileutil.NamedTemporaryDirectory(cleanup=False)
|
||||
tempdir = zfec.util.fileutil.NamedTemporaryDirectory(cleanup=True)
|
||||
fo = tempdir.file("test.data", "w+b")
|
||||
fo.write("WHEHWHJEKWAHDLJAWDHWALKDHA")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user