]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91607: Fix several test_concurrent_futures tests to actually test what they claim...
authorGregory P. Smith <greg@krypto.org>
Sat, 16 Apr 2022 18:46:33 +0000 (11:46 -0700)
committerGitHub <noreply@github.com>
Sat, 16 Apr 2022 18:46:33 +0000 (11:46 -0700)
commit7fa3a5a2197896066e3fe53ee325ac6ab54c3414
tree38e63154e63bcfc3626277ef26afe7b80e229344
parent0ddc63b240340a952692b11dfe0810973393ed11
gh-91607: Fix several test_concurrent_futures tests to actually test what they claim (#91600)

* Fix test_concurrent_futures to actually test what it says.

Many ProcessPoolExecutor based tests were ignoring the mp_context
and using the default instead.  This meant we lacked proper test
coverage of all of them.

Also removes the old _prime_executor() worker delay seeding code
as it appears to have no point and causes 20-30 seconds extra
latency on this already long test.  It also interfered with some
of the refactoring to fix the above to not needlessly create their
own executor when setUp has already created an appropriate one.

* Don't import the name from multiprocessing directly to avoid confusion.

* ðŸ“œðŸ¤– Added by blurb_it.

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Lib/test/test_concurrent_futures.py
Misc/NEWS.d/next/Tests/2022-04-16-17-54-05.gh-issue-91607.FnXjtW.rst [new file with mode: 0644]