Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4337a0d commit e6cfdefCopy full SHA for e6cfdef
1 file changed
Lib/test/_test_multiprocessing.py
@@ -501,8 +501,13 @@ def test_many_processes(self):
501
for p in procs:
502
join_process(p)
503
if os.name != 'nt':
504
+ exitcodes = [-signal.SIGTERM]
505
+ if sys.platform == 'darwin':
506
+ # bpo-31510: On macOS, killing a freshly started process with
507
+ # SIGTERM sometimes kills the process with SIGKILL.
508
+ exitcodes.append(-signal.SIGKILL)
509
- self.assertEqual(p.exitcode, -signal.SIGTERM)
510
+ self.assertIn(p.exitcode, exitcodes)
511
512
def test_lose_target_ref(self):
513
c = DummyCallable()
0 commit comments