summaryrefslogtreecommitdiff
path: root/Lib/test/future_test1.py
diff options
context:
space:
mode:
authorguido@google.com <guido@google.com>2011-03-29 12:09:45 -0700
committerguido@google.com <guido@google.com>2011-03-29 12:09:45 -0700
commit69cfcabae3d72845d44e1078d25072fdbb02072c (patch)
tree0aedaa424e8c8f7139567aed7b6980ea59e16c97 /Lib/test/future_test1.py
parent2008a8f8c09b18fbd24e8039553d50a828dd3fb2 (diff)
parente6c1eb92675f67d1907bd7ba00c44262c18e93d4 (diff)
downloadcpython-git-69cfcabae3d72845d44e1078d25072fdbb02072c.tar.gz
Merge.
Diffstat (limited to 'Lib/test/future_test1.py')
-rw-r--r--Lib/test/future_test1.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/future_test1.py b/Lib/test/future_test1.py
new file mode 100644
index 0000000000..297c2e087c
--- /dev/null
+++ b/Lib/test/future_test1.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)