mirror of
https://github.com/python/cpython.git
synced 2025-09-22 00:12:56 +00:00
Fix closes 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
d0f5f4827d
commit
3b30b19e0a
3 changed files with 21 additions and 2 deletions
|
@ -583,7 +583,7 @@ Py_Main(int argc, char **argv)
|
|||
sts = PyRun_SimpleStringFlags(command, &cf) != 0;
|
||||
free(command);
|
||||
} else if (module) {
|
||||
sts = RunModule(module, 1);
|
||||
sts = (RunModule(module, 1) != 0);
|
||||
free(module);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue