summaryrefslogtreecommitdiff
path: root/lib/python2.7/test/badsyntax_future7.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/test/badsyntax_future7.py')
-rw-r--r--lib/python2.7/test/badsyntax_future7.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python2.7/test/badsyntax_future7.py b/lib/python2.7/test/badsyntax_future7.py
new file mode 100644
index 0000000..131db2c
--- /dev/null
+++ b/lib/python2.7/test/badsyntax_future7.py
@@ -0,0 +1,11 @@
+"""This is a test"""
+
+from __future__ import nested_scopes; import string; from __future__ import \
+ nested_scopes
+
+def f(x):
+ def g(y):
+ return x + y
+ return g
+
+result = f(2)(4)