Skip to content

Commit

Permalink
SIGKILL doesn't exist on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
csm10495 committed Dec 17, 2024
1 parent 0db381b commit 7ae1685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_concurrent_futures/test_process_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ def test_process_pool_executor_terminate_workers_passes_signal(self, mock_kill):
future = executor.submit(time.sleep, 0)
future.result()

executor.terminate_workers(signal.SIGKILL)
executor.terminate_workers(signal.SIGABRT)

worker_process = list(executor._processes.values())[0]
mock_kill.assert_called_once_with(worker_process.pid, signal.SIGKILL)
mock_kill.assert_called_once_with(worker_process.pid, signal.SIGABRT)

def test_process_pool_executor_terminate_workers_passes_even_bad_signals(self):
with futures.ProcessPoolExecutor(max_workers=1) as executor:
Expand Down

0 comments on commit 7ae1685

Please sign in to comment.