tests: use the handy dandy TestCase.mktemp() function from trial to give unique and nicely named directories for each testcase

This commit is contained in:
Zooko O'Whielacronx 2008-07-30 15:49:20 -07:00
parent 6aabaa0797
commit dbd1c2397e

@ -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)