# HG changeset patch # User paulb@localhost.localdomain # Date 1165877365 -3600 # Node ID 3f4660d4f62f6ee065023fc2a9b0aa243f9e3b6a # Parent 4b355012e2160bd01b4d863a117afd3c0c70b6e6 Added a test of locals pruning. diff -r 4b355012e216 -r 3f4660d4f62f tests/locals.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/locals.py Mon Dec 11 23:49:25 2006 +0100 @@ -0,0 +1,16 @@ +class A: + pass + +def f1(a): + c = a.x + +def f2(a): + c = a.x + +def g(a): + a.x = 456 + +a = A() +f1(a) +g(a) +f2(a)