summary refs log tree commit diff stats
path: root/test/__init__.py
diff options
context:
space:
mode:
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()