diff options
author | hut <hut@lavabit.com> | 2010-01-20 00:18:18 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-20 00:18:18 +0100 |
commit | dd4a4145c5e43b191d54fdddbc16b037a5d7345e (patch) | |
tree | 95938ba20bf3fa66d23cb10a02ca148ba32369de /test/__init__.py | |
parent | 3a54161b2391705617f5790b65e35fc4edad0731 (diff) | |
download | ranger-dd4a4145c5e43b191d54fdddbc16b037a5d7345e.tar.gz |
fixed unit tests
Diffstat (limited to 'test/__init__.py')
-rw-r--r-- | test/__init__.py | 6 |
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() |