[issue41602] Python doesn't exit with proper resultcode on SIGINT in runpy
Thomas Grainger
report at bugs.python.org
Thu Aug 20 18:08:44 EDT 2020
Thomas Grainger <tagrain at gmail.com> added the comment:
I think I've eliminated runpy.py, as I still get a `-2` when using:
import runpy
runpy.run_module("ham")
or
runpy._run_module_as_main("ham")
see attached test_exit_runpy.py
It seems the only difference is if pymain_run_file or pymain_run_module is used.
----------
Added file: https://bugs.python.org/file49416/test_exit_runpy.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41602>
_______________________________________
More information about the Python-bugs-list
mailing list