Skip to content

bpo-30356: Fix test_mymanager_context() of multiprocessing#7968

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:mp_sigterm
Jun 27, 2018
Merged

bpo-30356: Fix test_mymanager_context() of multiprocessing#7968
vstinner merged 1 commit into
python:masterfrom
vstinner:mp_sigterm

Conversation

@vstinner

@vstinner vstinner commented Jun 27, 2018

Copy link
Copy Markdown
Member

test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.

https://bugs.python.org/issue30356

test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
@vstinner

Copy link
Copy Markdown
Member Author

I tested manually the fix on Windows and Linux using a timeout of 0 second instead of 1 second: the test pass! (without the fix, the test quickly fails with a timeout of 0 second)
https://bugs.python.org/issue30356#msg320592

@vstinner vstinner merged commit fbd7172 into python:master Jun 27, 2018
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@vstinner vstinner deleted the mp_sigterm branch June 27, 2018 16:18
@bedevere-bot

Copy link
Copy Markdown

GH-7969 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 27, 2018
…7968)

test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
(cherry picked from commit fbd7172)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@bedevere-bot

Copy link
Copy Markdown

GH-7970 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 27, 2018
…7968)

test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
(cherry picked from commit fbd7172)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request Jun 27, 2018
test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
(cherry picked from commit fbd7172)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request Jun 27, 2018
test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
(cherry picked from commit fbd7172)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
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.

4 participants