diff options
Diffstat (limited to 'lib/python2.7/test/test_future1.py')
-rw-r--r-- | lib/python2.7/test/test_future1.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python2.7/test/test_future1.py b/lib/python2.7/test/test_future1.py new file mode 100644 index 0000000..297c2e0 --- /dev/null +++ b/lib/python2.7/test/test_future1.py @@ -0,0 +1,11 @@ +"""This is a test""" + +# Import the name nested_scopes twice to trigger SF bug #407394 (regression). +from __future__ import nested_scopes, nested_scopes + +def f(x): + def g(y): + return x + y + return g + +result = f(2)(4) |