cpython: 1186d68715cc (original) (raw)

Mercurial > cpython

changeset 77947:1186d68715cc

Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp [#15033]

Senthil Kumaran senthil@uthcode.com
date Wed, 04 Jul 2012 19:33:45 -0700
parents 906c69928049(current diff)fcbd3bda7c0f(diff)
children 61e6ac40c816
files Lib/test/test_cmd_line_script.py Misc/NEWS Modules/main.c
diffstat 3 files changed, 19 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_cmd_line_script.py 15 Misc/NEWS 3 Modules/main.c 2

line wrap: on

line diff

--- a/Lib/test/test_cmd_line_script.py +++ b/Lib/test/test_cmd_line_script.py @@ -287,6 +287,21 @@ class CmdLineTest(unittest.TestCase): self._check_output(script_name, rc, out, script_name, script_name, '', '')

+ def test_pep_409_verbiage(self): # Make sure PEP 409 syntax properly suppresses # the context of an exception

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.3.0 Beta 2? Core and Builtins ----------------- +- Issue #15033: Fix the exit status bug when modules invoked using -m swith,

--- a/Modules/main.c +++ b/Modules/main.c @@ -660,7 +660,7 @@ Py_Main(int argc, wchar_t **argv) sts = run_command(command, &cf); free(command); } else if (module) {