]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
zfec: disable the feature of leaving unit test tmp dirs lying around for post-mortem...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 9 May 2007 17:50:48 +0000 (10:50 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 9 May 2007 17:50:48 +0000 (10:50 -0700)
fixes #41 in the allmydata.org trac

http://allmydata.org/trac/tahoe/ticket/41

src/zfec/zfec/test/test_zfec.py

index f7b7ecb294d1df786617f569a999dfb4f5fec539..3a76ddfe238ad0d122619c11f373f18bac2c37a1 100644 (file)
@@ -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")