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()
title='Blame the previous revision' href='/akkartik/mu/blame/mu.vim?h=main&id=e3894819b3d3a7809b63a76cfdafa4c455eb9a6c'>^
e3894819 ^
b38d7fff ^
a6d9bd9b ^



1ae4e0d9 ^
a6d9bd9b ^

1ae4e0d9 ^


fc2046a1 ^
b38d7fff ^
e3894819 ^
1ae4e0d9 ^
fc2046a1 ^
8ebe8ef6 ^
38f0b91a ^
04afb4b0 ^

b38d7fff ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58