From: Zooko O'Whielacronx Date: Wed, 9 May 2007 17:50:48 +0000 (-0700) Subject: zfec: disable the feature of leaving unit test tmp dirs lying around for post-mortem... X-Git-Url: https://git.rkrishnan.org/frontends/wapi.txt?a=commitdiff_plain;h=21db2bfa3f3a451235d18c57c3476f2c1ed74c12;p=tahoe-lafs%2Ftahoe-lafs.git 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 --- diff --git a/src/zfec/zfec/test/test_zfec.py b/src/zfec/zfec/test/test_zfec.py index f7b7ecb2..3a76ddfe 100644 --- a/src/zfec/zfec/test/test_zfec.py +++ b/src/zfec/zfec/test/test_zfec.py @@ -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")