[issue18623] Factor out the _SuppressCoreFiles context manager

Charles-François Natali report at bugs.python.org
Fri Aug 23 07:05:30 CEST 2013


Charles-François Natali added the comment:

Could you post your patch without the '--git' option?
Apparently it doesn't work well with the code review tool.

> It would be nice if there was a more explicit way to test the
> creation of core files, however.

One possibility would be to fork() a child process, and make it call os.abort(). In the parent, call os.waitpid(), and call os.WCOREDUMP() on the status.

----------
nosy: +neologix

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18623>
_______________________________________


More information about the Python-bugs-list mailing list