[Python-checkins] [python/cpython] 33cf0c: bpo-30675: Fix multiprocessing code in regrtest (#...
GitHub
noreply at github.com
Thu Jun 15 18:08:41 EDT 2017
Branch: refs/heads/3.5
Home: https://github.com/python/cpython
Commit: 33cf0c4cd6e8abe138c3469ca9ec1502410945f0
https://github.com/python/cpython/commit/33cf0c4cd6e8abe138c3469ca9ec1502410945f0
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-06-16 (Fri, 16 Jun 2017)
Changed paths:
M Lib/test/regrtest.py
Log Message:
-----------
bpo-30675: Fix multiprocessing code in regrtest (#2220)
* Rewrite code to pass slaveargs from the master process to worker
processes: reuse the same code of the Python master branch
* Move code to initialize tests in a new setup_tests() function,
similar change was done in the master branch
* In a worker process, call setup_tests() with the namespace built
from slaveargs to initialize correctly tests
Before this change, warm_caches() was not called in worker processes
because the setup was done before rebuilding the namespace from
slaveargs. As a consequence, the huntrleaks feature was unstable. For
example, test_zipfile reported randomly false positive on reference
leaks.
More information about the Python-checkins
mailing list