1.1 --- a/tests/attribute_access_type_restriction_loop_accumulation.py Tue Sep 07 20:09:20 2010 +0200
1.2 +++ b/tests/attribute_access_type_restriction_loop_accumulation.py Fri Sep 10 00:27:49 2010 +0200
1.3 @@ -29,16 +29,22 @@
1.4 def g(self):
1.5 return 5
1.6
1.7 + def h(self):
1.8 + return 6
1.9 +
1.10 def test_loop(obj, obj2):
1.11 + # obj: f, g (from loop); f, h (outside loop)
1.12 while obj.f():
1.13 + # obj: g (in loop)
1.14 obj.g()
1.15 - obj = obj2 # should support e, f, g
1.16 + obj = obj2 # obj: e, f, h
1.17 obj.e()
1.18 - return obj.f()
1.19 + # (test invoked again)
1.20 + return obj.h()
1.21
1.22 c = C()
1.23 d = D()
1.24 e = E()
1.25 -result1_0 = test_loop(d, e)
1.26 +result_6 = test_loop(d, e)
1.27
1.28 # vim: tabstop=4 expandtab shiftwidth=4