summaryrefslogtreecommitdiffstats
path: root/Lib/test/future_test1.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-24 18:57:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-03-24 18:57:05 (GMT)
commit576483085c7357130afba7f605db431df255ec74 (patch)
treeca4f7809d7476088594b9336bce372463ba164c7 /Lib/test/future_test1.py
parentb588f8dd9fcd4881659b1037f92e433d3fb6c29c (diff)
downloadcpython-576483085c7357130afba7f605db431df255ec74.zip
cpython-576483085c7357130afba7f605db431df255ec74.tar.gz
cpython-576483085c7357130afba7f605db431df255ec74.tar.bz2
#11093: make NOTTESTS empty by renaming confusingly named files in test dir.
Patch by Sandro Tosi.
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 0000000..297c2e0
--- /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)