From ae03fce628b647757b0a02dda444def299f7cf3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Sat, 21 Mar 2020 17:38:46 +0200 Subject: [PATCH] The Windows test doesn't work on Windows :( --- tests/test_signal_handlers.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_signal_handlers.py b/tests/test_signal_handlers.py index f37e6983..3b545597 100644 --- a/tests/test_signal_handlers.py +++ b/tests/test_signal_handlers.py @@ -5,6 +5,8 @@ import signal from queue import Queue from unittest.mock import MagicMock +import pytest + from sanic.compat import ctrlc_workaround_for_windows from sanic.response import HTTPResponse from sanic.testing import HOST, PORT @@ -61,8 +63,13 @@ def test_dont_register_system_signals(app): assert calledq.get() is False +@pytest.mark.skipif( + os.name == "nt", reason="windows cannot SIGINT processes" +) def test_windows_workaround(app): - """Test Windows workaround (on any OS)""" + """Test Windows workaround (on any other OS)""" + # At least some code coverage, even though this test doesn't work on + # Windows... too_slow = False @app.add_task