From: Zooko O'Whielacronx Date: Wed, 30 Jul 2008 22:49:20 +0000 (-0700) Subject: tests: use the handy dandy TestCase.mktemp() function from trial to give unique and... X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=dbd1c2397e47dae11edf6bf6efae64e8ce45a909;p=tahoe-lafs%2Ftahoe-lafs.git tests: use the handy dandy TestCase.mktemp() function from trial to give unique and nicely named directories for each testcase --- diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index 74071766..17e5bf8c 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -1709,7 +1709,9 @@ class SystemTest(SystemTestMixin, unittest.TestCase): class Checker(SystemTestMixin, unittest.TestCase): def setUp(self): - self.basedir = "system/SystemTest/Checker" + # Set self.basedir to a temp dir which has the name of the current test method in its + # name. + self.basedir = self.mktemp() TEST_DATA="\x02"*1000 d = defer.maybeDeferred(SystemTestMixin.setUp, self)