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
2ebf8ce488b64fb4a205e6b94de309d56cf387d2
cpython/Lib/test/test_future2.py

11 lines
149 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"""
Remove functions in string module that are also string methods. Also remove: * all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
2007-04-17 08:48:32 +00:00
from __future__ import nested_scopes; import site
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: 1427ms Template: 7ms
English
English
Licenses API