[Python-checkins] python/dist/src/Lib/test test_scope.py,1.24.4.1,1.24.4.2

jhylton@sourceforge.net jhylton@sourceforge.net
Fri, 19 Apr 2002 22:06:39 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv2429

Modified Files:
      Tag: release22-maint
	test_scope.py 
Log Message:
backport fix for SF buf #505315 from trunk


Index: test_scope.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_scope.py,v
retrieving revision 1.24.4.1
retrieving revision 1.24.4.2
diff -C2 -d -r1.24.4.1 -r1.24.4.2
*** test_scope.py	3 Mar 2002 15:17:07 -0000	1.24.4.1
--- test_scope.py	20 Apr 2002 05:06:36 -0000	1.24.4.2
***************
*** 513,514 ****
--- 513,524 ----
  except NameError:
      pass
+ 
+ print "22. eval with free variables"
+ 
+ def f(x):
+     def g():
+         x
+         eval("x + 1")
+     return g
+ 
+ f(4)()