1.1 --- a/tests/attribute_access_type_restriction_conditional_choice.py Mon Sep 06 01:08:58 2010 +0200
1.2 +++ b/tests/attribute_access_type_restriction_conditional_choice.py Tue Sep 07 01:07:23 2010 +0200
1.3 @@ -20,16 +20,15 @@
1.4
1.5 def test_conditional(obj):
1.6 # obj: C, D, E (f)
1.7 - if obj.f(): # C, D, E (f)
1.8 - obj.g() # D (f, g)
1.9 + if obj.f(): # C, D, E (f)
1.10 + return obj.g() # D (f, g)
1.11 else:
1.12 - obj.h() # E (f, h)
1.13 - # # (f, g) ^ (f, h)
1.14 - return 2
1.15 + return obj.h() # E (f, h)
1.16 + # # (f, g) ^ (f, h)
1.17
1.18 c = C()
1.19 d = D()
1.20 e = E()
1.21 -result1_2 = test_conditional(d)
1.22 +result1_3 = test_conditional(d)
1.23
1.24 # vim: tabstop=4 expandtab shiftwidth=4