mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
This commit is contained in:
parent
035997f1a3
commit
f01a337950
3 changed files with 19 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ Py_Main(int argc, wchar_t **argv)
|
|||
sts = run_command(command, &cf);
|
||||
free(command);
|
||||
} else if (module) {
|
||||
sts = RunModule(module, 1);
|
||||
sts = (RunModule(module, 1) != 0);
|
||||
}
|
||||
else {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue