Message377019
> 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 | |
| Date | User | Action | Args | | 2020-09-16 19:41:45 | graingert | set | recipients: + graingert, gvanrossum, gregory.p.smith, ncoghlan, eryksun | | 2020-09-16 19:41:45 | graingert | set | messageid: <1600285305.08.0.040547041457.issue41602@roundup.psfhosted.org> | | 2020-09-16 19:41:45 | graingert | link | issue41602 messages | | 2020-09-16 19:41:45 | graingert | create | | |