Logo
Explore Help
Sign In
1berry/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Packages Projects Releases Wiki Activity
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 Version: 1.23.8 Page: 4181ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API