diff options
Diffstat (limited to 'Lib/test/test_scope.py')
-rw-r--r-- | Lib/test/test_scope.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index 85cfed4..f39bbc2 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py @@ -512,3 +512,13 @@ try: print bad except NameError: pass + +print "22. eval with free variables" + +def f(x): + def g(): + x + eval("x + 1") + return g + +f(4)() |