Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69cce48

Browse files
committed
Merge.
2 parents cfac518 + 8731d7b commit 69cce48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/multiprocessing/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _bootstrap(self):
262262
exitcode = e.args[0]
263263
else:
264264
sys.stderr.write(str(e.args[0]) + '\n')
265-
exitcode = 0 if isinstance(e.args[0], str) else 1
265+
exitcode = 1
266266
except:
267267
exitcode = 1
268268
import traceback

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def test_sys_exit(self):
474474
testfn = test.support.TESTFN
475475
self.addCleanup(test.support.unlink, testfn)
476476

477-
for reason, code in (([1, 2, 3], 1), ('ignore this', 0)):
477+
for reason, code in (([1, 2, 3], 1), ('ignore this', 1)):
478478
p = self.Process(target=self._test_sys_exit, args=(reason, testfn))
479479
p.daemon = True
480480
p.start()

0 commit comments

Comments
 (0)