From eb3bcab1d0232e84320dda0f963048465eb0b52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Fri, 14 May 2021 16:09:16 +0200 Subject: [PATCH] Unskip exit signal handling --- tests/executors/test_executor.py | 6 ------ tests/executors/test_executor_kill.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/executors/test_executor.py b/tests/executors/test_executor.py index d1026d91..8a83053f 100644 --- a/tests/executors/test_executor.py +++ b/tests/executors/test_executor.py @@ -19,9 +19,6 @@ SLEEP_300 = "sleep 300" -@pytest.mark.skipif( - "platform.system() == 'Windows'", reason="Expects signal -15 gets 15" -) @pytest.mark.parametrize("command", (SLEEP_300, SLEEP_300.split())) def test_running_process(command): """Start process and shuts it down.""" @@ -36,9 +33,6 @@ def test_running_process(command): assert SLEEP_300 in str(executor) -@pytest.mark.skipif( - "platform.system() == 'Windows'", reason="Expects signal -15 gets 15" -) @pytest.mark.parametrize("command", (SLEEP_300, SLEEP_300.split())) def test_command(command): """Check that the command and command parts are equivalent.""" diff --git a/tests/executors/test_executor_kill.py b/tests/executors/test_executor_kill.py index c5859c6e..dedb22dc 100644 --- a/tests/executors/test_executor_kill.py +++ b/tests/executors/test_executor_kill.py @@ -91,7 +91,7 @@ def test_daemons_killing(): @pytest.mark.skipif( "platform.system() == 'Windows'", - reason="Expects signal -15 gets 15 at the last stop", + reason="Subprocess killed earlier than in 10 secs. Blocking signals probably doesn't work.", ) def test_stopping_brutally(): """