Skip to content

Commit 7ae1685

Browse files
committed
SIGKILL doesn't exist on windows
1 parent 0db381b commit 7ae1685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_concurrent_futures/test_process_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ def test_process_pool_executor_terminate_workers_passes_signal(self, mock_kill):
278278
future = executor.submit(time.sleep, 0)
279279
future.result()
280280

281-
executor.terminate_workers(signal.SIGKILL)
281+
executor.terminate_workers(signal.SIGABRT)
282282

283283
worker_process = list(executor._processes.values())[0]
284-
mock_kill.assert_called_once_with(worker_process.pid, signal.SIGKILL)
284+
mock_kill.assert_called_once_with(worker_process.pid, signal.SIGABRT)
285285

286286
def test_process_pool_executor_terminate_workers_passes_even_bad_signals(self):
287287
with futures.ProcessPoolExecutor(max_workers=1) as executor:

0 commit comments

Comments
 (0)