diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-11-17 17:30:54 +0000 |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-11-17 17:30:54 +0000 |
commit | deae62df665a528898e13887a483bfdcba13a49c (patch) | |
tree | 17552faf7a92222b4f97522e26f908a0ebc300f5 | |
parent | 38c4f79ca5076160b7f0b156969c6be5972cff0b (diff) | |
parent | 6957bb8549202ff9a20ad01c5888c00bd48279e0 (diff) | |
download | cpython-deae62df665a528898e13887a483bfdcba13a49c.tar.gz |
Merge.
-rw-r--r-- | Lib/multiprocessing/process.py | 2 | ||||
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/process.py b/Lib/multiprocessing/process.py index cd52736a70..68959bf9f4 100644 --- a/Lib/multiprocessing/process.py +++ b/Lib/multiprocessing/process.py @@ -262,7 +262,7 @@ class BaseProcess(object): exitcode = e.args[0] else: sys.stderr.write(str(e.args[0]) + '\n') - exitcode = 0 if isinstance(e.args[0], str) else 1 + exitcode = 1 except: exitcode = 1 import traceback diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index ad77260c05..183e86fd3a 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -474,7 +474,7 @@ class _TestSubclassingProcess(BaseTestCase): testfn = test.support.TESTFN self.addCleanup(test.support.unlink, testfn) - for reason, code in (([1, 2, 3], 1), ('ignore this', 0)): + for reason, code in (([1, 2, 3], 1), ('ignore this', 1)): p = self.Process(target=self._test_sys_exit, args=(reason, testfn)) p.daemon = True p.start() |