{{ message }}
bpo-40275: Use new test.support helper submodules in tests - #21450
Closed
shihai1991 wants to merge 94 commits into
Closed
bpo-40275: Use new test.support helper submodules in tests#21450shihai1991 wants to merge 94 commits into
shihai1991 wants to merge 94 commits into
Conversation
shihai1991
requested review from
brettcannon,
encukou,
ericsnowcurrently,
ncoghlan and
warsaw
as code owners
July 12, 2020 09:13
Member
Author
vstinner
reviewed
Aug 3, 2020
| from test.support.import_helper import (forget, make_legacy_pyc, unlink, | ||
| unload, DirsOnSysPath) | ||
| from test.support.os_helper import (TESTFN, rmtree, temp_umask, | ||
| TESTFN_UNENCODABLE, temp_dir) |
Member
Member
Author
There was a problem hiding this comment.
Oh, sorry for this terrible rebase operation, I use a new PR to replace it.
Automerge-Triggered-By: @tiran
* Add example on lazy imports * Use four spaces for indentation * change to console
The phrase "At any time during execution," was repeated twice. Automerge-Triggered-By: @Mariatta
…or (pythonGH-21474) #msg373510 [bpo-32528]()/python#13528 changed `asyncio.CancelledError` such that it no longer inherits from `concurrent.futures.CancelledError`. As this affects existing code, specifically when catching the latter instead of the former in exception handling, it should be documented in the "What's new in 3.8?" document. Automerge-Triggered-By: @1st1
…using recv_into instead of recv (python#21442) * bpo-41273: Proactor transport read loop to use recv_into By using recv_into instead of recv we do not allocate a new buffer each time _loop_reading calls recv. This betters performance for any stream using proactor (basically any asyncio stream on windows). * bpo-41273: Double proactor read transport buffer size By doubling the read buffer size we get better performance.
Avoid infinite loop when reading specially crafted TAR files using the tarfile module (CVE-2019-20907).
Move definition of UNUSED from modified headers of libmpdec to _decimal.c itself. This makes the vendored source closer to the standalone library and fixes build with --with-system-libmpdec. Tested to build fine with either system libmpdec or the vendored one.
…thonGH-21718) regrtest_unraisable_hook() temporarily replaces sys.stderr with sys.__stderr__ to help to display errors when a test captures stderr.
incr cannot be larger than INT_MAX: downcast to int explicitly.
On Windows, fix asyncio recv_into() return value when the socket/pipe is closed (BrokenPipeError): return 0 rather than an empty byte string (b'').
…ythonGH-17536) Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
shihai1991
requested review from
a team,
1st1,
abalkin,
asvetlov,
ethanfurman,
ezio-melotti,
gpshead,
gvanrossum,
ilevkivskyi,
lysnikolaou,
methane,
pablogsal,
pganssle,
rhettinger,
skrah,
terryjreedy,
tiran and
vsajip
as code owners
August 4, 2020 04:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Use test helpers in the following test cases:
https://bugs.python.org/issue40275