mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
9
Lib/test/test_future1.py
Normal file
9
Lib/test/test_future1.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"""This is a test"""
|
||||
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