From a2b9a089d8052f384de9320a7dd037bde4221014 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Sat, 26 Oct 2024 15:21:24 +0200 Subject: [PATCH] DevOps: Skip test that hangs on MacOS --- circus/util.py | 2 ++ tests/test_watcher.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/circus/util.py b/circus/util.py index c9093758..92d1fe92 100644 --- a/circus/util.py +++ b/circus/util.py @@ -2,6 +2,7 @@ import logging import logging.config import os +import platform import re import shlex import socket @@ -93,6 +94,7 @@ def _setproctitle(title): # NOQA _all_signals = {} IS_WINDOWS = os.name == 'nt' +IS_MACOS = platform.system() == 'Darwin' def get_working_dir(): diff --git a/tests/test_watcher.py b/tests/test_watcher.py index 44d4588c..c005428f 100644 --- a/tests/test_watcher.py +++ b/tests/test_watcher.py @@ -24,7 +24,7 @@ from circus.stream import QueueStream from tests.support import TestCircus, truncate_file from tests.support import async_poll_for -from tests.support import MagicMockFuture, skipIf, IS_WINDOWS +from tests.support import MagicMockFuture, skipIf, IS_WINDOWS, IS_MACOS from tests.support import PYTHON from circus.util import get_python_version, tornado_sleep, to_str from circus.watcher import Watcher @@ -488,6 +488,7 @@ def test_after_start_fails(self): yield self._test_hooks(behavior=ERROR, status='stopped', hook_name='after_start') + @skipIf(IS_MACOS, "Test hangs") @tornado.testing.gen_test def test_after_start_false(self): yield self._test_hooks(behavior=FAILURE, status='stopped',