This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author graingert
Recipients eryksun, graingert, gregory.p.smith, gvanrossum, ncoghlan
Date 2020-09-16.19:41:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600285305.08.0.040547041457.issue41602@roundup.psfhosted.org>
In-reply-to
Content
> Okay, I got it. Now my next question. What do you mean by "I've eliminated runpy" and various other remarks along those lines? I can use `runpy._run_module_as_main` from another Python entry, eg -c and get the correct `-2` >>> subprocess.run(["python3", "-c", "__import__('runpy')._run_module_as_main('spam')"]) Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/graingert/projects/osirium-main/spam.py", line 1, in <module> raise KeyboardInterrupt KeyboardInterrupt CompletedProcess(args=['python3', '-c', "__import__('runpy')._run_module_as_main('spam')"], returncode=-2) > Have you actually identified the root cause of the problem? What's your suggested fix (without test framework). No I don't have a fix
History
Date User Action Args
2020-09-16 19:41:45graingertsetrecipients: + graingert, gvanrossum, gregory.p.smith, ncoghlan, eryksun
2020-09-16 19:41:45graingertsetmessageid: <1600285305.08.0.040547041457.issue41602@roundup.psfhosted.org>
2020-09-16 19:41:45graingertlinkissue41602 messages
2020-09-16 19:41:45graingertcreate