summaryrefslogtreecommitdiff
path: root/Lib/test/future_test1.py
diff options
context:
space:
mode:
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)