From: Zooko O'Whielacronx zooko@zooko.com Date: Wed, 9 May 2007 17:50:48 +0000 (+0530) Subject: zfec: disable the feature of leaving unit test tmp dirs lying around for post-mortem... X-Git-Url: https://git.rkrishnan.org/simplejson/decoder.py.html?a=commitdiff_plain;h=57260d5eb90a638e54775d8d67fab00cbc65107a;p=tahoe-lafs%2Fzfec.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 darcs-hash:a523b79db6fff6a9949b95e60e59826b2afdd6f6 --- diff --git a/zfec/zfec/test/test_zfec.py b/zfec/zfec/test/test_zfec.py index f7b7ecb..3a76ddf 100755 --- a/zfec/zfec/test/test_zfec.py +++ b/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")