summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-20 21:18:56 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-20 21:18:56 (GMT)
commit18da1e1e7f30d0612e7a36a369e1d422dd50ef41 (patch)
tree390bf5e1a139e76b0e517cc10143191e7410ab75 /Lib
parent8471a35febdbfbfab51b9d4b5fe51694fe6ca536 (diff)
downloadcpython-18da1e1e7f30d0612e7a36a369e1d422dd50ef41.zip
cpython-18da1e1e7f30d0612e7a36a369e1d422dd50ef41.tar.gz
cpython-18da1e1e7f30d0612e7a36a369e1d422dd50ef41.tar.bz2
Add test case to cover multiple future statements on separate lines of
a module.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_future3.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_future3.py b/Lib/test/test_future3.py
new file mode 100644
index 0000000..8f8c274
--- /dev/null
+++ b/Lib/test/test_future3.py
@@ -0,0 +1,11 @@
+from __future__ import nested_scopes
+from __future__ import division
+from __future__ import nested_scopes
+
+def f(x):
+ def g(y):
+ return y // x
+ return g
+
+
+print f(2)(5)