Logo
Explore Help
Sign In
ada/cpython
0
0
Fork 0
You've already forked cpython
mirror of https://github.com/AdaCore/cpython.git synced 2026-02-12 12:57:15 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
d988f429fe43808345812ef63dfa8da170c61871
cpython/Lib/test/test_future1.py

12 lines
229 B
Python
Raw Normal View History

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.
2001-02-28 17:48:06 +00:00
"""This is a test"""
Import the nested_scopes feature twice, to exercise the patch introduced to avoid segfaults when more than one feature is named in the future statement. This tests for regression of SF bug #407394.
2001-03-10 02:18:47 +00:00
# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
from __future__ import nested_scopes, nested_scopes
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.
2001-02-28 17:48:06 +00:00
def f(x):
def g(y):
return x + y
return g
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
2003-12-13 22:43:34 +00:00
result = f(2)(4)
Reference in New Issue Copy Permalink
Powered by Gitea Page: 3504ms Template: 4ms
English
English
Licenses API