# HG changeset patch # User Paul Boddie # Date 1393183910 -3600 # Node ID 257aa2d84abee5b14aeb6376d287af9a0db9356c # Parent 287e94386042bdc3f5da64509f7a70d414784da1 Added a test of a name taking different scopes in the same unit. diff -r 287e94386042 -r 257aa2d84abe tests/globals_vs_locals.py --- a/tests/globals_vs_locals.py Sun Feb 23 20:26:19 2014 +0100 +++ b/tests/globals_vs_locals.py Sun Feb 23 20:31:50 2014 +0100 @@ -9,9 +9,17 @@ global b b = x +def h(): + b = b + c = b + b = 1 + return c + f(3) result_2 = b g(4) -result_4 = b +result1_4 = b +result2_4 = h() +result3_4 = b # vim: tabstop=4 expandtab shiftwidth=4