From dd4a4145c5e43b191d54fdddbc16b037a5d7345e Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 20 Jan 2010 00:18:18 +0100 Subject: fixed unit tests --- test/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/__init__.py') 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() -- cgit 1.4.1-2-gfad0