Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-36670, regrtest: Fix TestWorkerProcess.stop()#16530

Closed
vstinner wants to merge 2 commits into
python:masterpython/cpython:masterfrom
vstinner:regrtest_lockCopy head branch name to clipboard
Closed

bpo-36670, regrtest: Fix TestWorkerProcess.stop()#16530
vstinner wants to merge 2 commits into
python:masterpython/cpython:masterfrom
vstinner:regrtest_lockCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Oct 2, 2019

Copy link
Copy Markdown
Member
  • 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.

https://bugs.python.org/issue36670

* 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.
@vstinner

vstinner commented Oct 2, 2019

Copy link
Copy Markdown
Member Author

I'm not sure if my lock is correct, so I wrote a simpler PR with no lock: PR #16537.

@vstinner vstinner closed this Oct 2, 2019
@vstinner vstinner deleted the regrtest_lock branch October 2, 2019 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.