Message 375735 - Python tracker
Message375735
| Author | graingert |
|---|---|
| Recipients | graingert, gregory.p.smith, ncoghlan |
| Date | 2020-08-20.22:08:44 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1597961324.93.0.70315316545.issue41602@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-08-20 22:08:44 | graingert | set | recipients: + graingert, gregory.p.smith, ncoghlan |
| 2020-08-20 22:08:44 | graingert | set | messageid: <1597961324.93.0.70315316545.issue41602@roundup.psfhosted.org> |
| 2020-08-20 22:08:44 | graingert | link | issue41602 messages |
| 2020-08-20 22:08:44 | graingert | create | |