tests/failure/shadow_locals_globals.py | raw changeset files shortlog |
1.1 --- a/tests/failure/shadow_locals_globals.py Sat Jun 12 23:09:30 2010 +0200 1.2 +++ b/tests/failure/shadow_locals_globals.py Sun Jun 13 02:24:35 2010 +0200 1.3 @@ -3,8 +3,11 @@ 1.4 a = 1 1.5 1.6 def before(): 1.7 - b = a 1.8 - a = 2 1.9 + i = 2 1.10 + while i > 0: 1.11 + b = a # right hand side name changes origin 1.12 + a = 2 1.13 + i -= 1 1.14 return b 1.15 1.16 result1_1 = before()