From 9ab7524f0da3fcf8f841e96295823947de6f7d66 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Thu, 14 Jan 2010 22:27:13 -0800
Subject: [PATCH] test_dirnode.py: reduce scope of a Client instance, suggested
 by Kevan.

---
 src/allmydata/test/test_dirnode.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.45.2