From: Brian Warner Date: Fri, 15 Jan 2010 06:27:13 +0000 (-0800) Subject: test_dirnode.py: reduce scope of a Client instance, suggested by Kevan. X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/reliability?a=commitdiff_plain;h=9ab7524f0da3fcf8f841e96295823947de6f7d66;p=tahoe-lafs%2Ftahoe-lafs.git test_dirnode.py: reduce scope of a Client instance, suggested by Kevan. --- diff --git a/src/allmydata/test/test_dirnode.py b/src/allmydata/test/test_dirnode.py index a45b37f3..a07d298e 100644 --- a/src/allmydata/test/test_dirnode.py +++ b/src/allmydata/test/test_dirnode.py @@ -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