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/future_test1.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 Version: 1.23.8 Page: 3309ms Template: 4ms
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