Uh oh!
There was an error while loading. Please reload this page.
Test atexit shutdown mechanism in a subprocess - #4828
Conversation
pitrou
commented
Dec 13, 2017
…t_check_subprocess
| /* 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.
vstinner
commented
Dec 13, 2017
At least, the assertion worked as expected before you rebased this PR on top of PR #4826, Travis CI failed with: |
miss-islington
commented
Dec 13, 2017
Thanks @pitrou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6. |
miss-islington
commented
Dec 13, 2017
Sorry, @pitrou, I could not cleanly backport this to |
* Test atexit shutdown mechanism in a subprocess. (cherry picked from commit fc5db95)
bedevere-bot
commented
Dec 13, 2017
GH-4829 is a backport of this pull request to the 3.6 branch. |
Needs #4826 to work.