mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
ad3d3f2f3f
commit
62e2c7e3df
10 changed files with 132 additions and 0 deletions
10
Lib/test/test_future4.py
Normal file
10
Lib/test/test_future4.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
"""This is a test"""
|
||||
import __future__
|
||||
from __future__ import nested_scopes
|
||||
|
||||
def f(x):
|
||||
def g(y):
|
||||
return x + y
|
||||
return g
|
||||
|
||||
print f(2)(4)
|
Loading…
Add table
Add a link
Reference in a new issue