bpo-36670, regrtest: Fix TestWorkerProcess.stop() by vstinner · Pull Request #16530 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
- Add a RLock to TestWorkerProcess to make stop() reliable when
regrtest is interrupted by CTRL+c: protect _popen and _killed
attributes. - Fix _kill(): don't set _killed to True if _popen is None.
- Fix TestWorkerProcess.repr(): start_time is only valid
if _popen is not None.
* Add a RLock to TestWorkerProcess to make stop() reliable when regrtest is interrupted by CTRL+c: protect _popen and _killed attributes. * Fix _kill(): don't set _killed to True if _popen is None. * Fix TestWorkerProcess.__repr__(): start_time is only valid if _popen is not None.
I'm not sure if my lock is correct, so I wrote a simpler PR with no lock: PR #16537.
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