1.1 --- a/tests/attribute_access_type_restriction_new_conditional.py Fri Sep 10 00:27:49 2010 +0200
1.2 +++ b/tests/attribute_access_type_restriction_new_conditional.py Sat Sep 11 21:45:24 2010 +0200
1.3 @@ -19,14 +19,13 @@
1.4 return 5
1.5
1.6 def test_new_conditional(obj, obj2):
1.7 - # obj:
1.8 - # obj2:
1.9 - if obj.f(): # C, D, E (f)
1.10 - obj = obj2 # obj: D (g)
1.11 - obj.g() # D (g)
1.12 + # obj: f; f, h
1.13 + if obj.f():
1.14 + obj = obj2 # obj: g
1.15 + obj.g()
1.16 else:
1.17 - obj.h() # E (f, h)
1.18 - # # (g) ^ (f, h)
1.19 + obj.h()
1.20 +
1.21 return 5
1.22
1.23 c = C()