Thomas Grainger <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue41602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com