commit | 62e2c7e3dfffd8465a54b99fc6d3c2a60acab350 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Feb 28 17:48:06 2001 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Feb 28 17:48:06 2001 +0000 |
tree | c65779760ccbdca9ec76deb901b94fd91e0908af | |
parent | ad3d3f2f3f19833f59fd7e9ec59e1714e0986e08 [diff] [blame] |
Add regression test for future statements. This adds eight files, but seven are not tests in their own right; these files are mentioned in regrtest.
diff --git a/Lib/test/test_future3.py b/Lib/test/test_future3.py new file mode 100644 index 0000000..166628c --- /dev/null +++ b/Lib/test/test_future3.py
@@ -0,0 +1,10 @@ +"""This is a test""" +from __future__ import nested_scopes +from __future__ import rested_snopes + +def f(x): + def g(y): + return x + y + return g + +print f(2)(4)