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.
This commit is contained in:
Jeremy Hylton 2001-02-28 17:48:06 +00:00
parent ad3d3f2f3f
commit 62e2c7e3df
10 changed files with 132 additions and 0 deletions

10
Lib/test/test_future2.py Normal file
View file

@ -0,0 +1,10 @@
"""This is a test"""
from __future__ import nested_scopes; import string
def f(x):
def g(y):
return x + y
return g
print f(2)(4)