mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix handling of SystemExit and exit code. Patch by Brodie Rao.
This commit is contained in:
parent
edcf8daaed
commit
8731d7b3c6
2 changed files with 2 additions and 2 deletions
|
@ -467,7 +467,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue