summary refs log tree commit diff stats
path: root/test/__init__.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-20 00:18:18 +0100
committerhut <hut@lavabit.com>2010-01-20 00:18:18 +0100
commitdd4a4145c5e43b191d54fdddbc16b037a5d7345e (patch)
tree95938ba20bf3fa66d23cb10a02ca148ba32369de /test/__init__.py
parent3a54161b2391705617f5790b65e35fc4edad0731 (diff)
downloadranger-dd4a4145c5e43b191d54fdddbc16b037a5d7345e.tar.gz
fixed unit tests
Diffstat (limited to 'test/__init__.py')
-rw-r--r--test/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/__init__.py b/test/__init__.py
index 3043ba18..86557b6a 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -9,9 +9,9 @@ def init():
 
 class Fake(object):
 	def __getattr__(self, attrname):
-		if not hasattr(self, attrname):
-			setattr(self, attrname, Fake())
-		return self.__dict__[attrname]
+		val = Fake()
+		self.__dict__[attrname] = val
+		return val
 
 	def __call__(self, *_):
 		return Fake()