Test atexit shutdown mechanism in a subprocess#4828
Conversation
…t_check_subprocess
Python/pylifecycle.c
Outdated
| /* For the atexit module. */ | ||
| void _Py_PyAtExit(void (*func)(void)) | ||
| { | ||
| /* Guard against API misuse */ |
There was a problem hiding this comment.
Maybe add "bpo-17852: " prefix. Otherwise, the purpose of the assertion is not obvious.
Or explain that calling this function to register a new callback replaces the previous callback, which is unlikely to be the expected behaviour.
There was a problem hiding this comment.
Yes, adding a bpo references sounds good to me.
|
At least, the assertion worked as expected before you rebased this PR on top of PR #4826, Travis CI failed with: |
|
Thanks @pitrou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6. |
|
Sorry, @pitrou, I could not cleanly backport this to |
* Test atexit shutdown mechanism in a subprocess. (cherry picked from commit fc5db95)
|
GH-4829 is a backport of this pull request to the 3.6 branch. |
Needs #4826 to work.