]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_dirnode.py: reduce scope of a Client instance, suggested by Kevan.
authorBrian Warner <warner@lothar.com>
Fri, 15 Jan 2010 06:27:13 +0000 (22:27 -0800)
committerBrian Warner <warner@lothar.com>
Fri, 15 Jan 2010 06:27:13 +0000 (22:27 -0800)
src/allmydata/test/test_dirnode.py

index a45b37f30f333a8ce51af909c70d91119a74d898..a07d298e17297a0c9c8a11f0e210e8b357e03d3a 100644 (file)
@@ -1045,8 +1045,8 @@ class FakeClient2(Client):
 
 class Dirnode2(unittest.TestCase, testutil.ShouldFailMixin):
     def setUp(self):
-        self.client = FakeClient2()
-        self.nodemaker = self.client.nodemaker
+        client = FakeClient2()
+        self.nodemaker = client.nodemaker
 
     def test_from_future(self):
         # create a dirnode that contains unknown URI types, and make sure we