Skip to content

Commit

Permalink
DevOps: Skip test that hangs on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber committed Oct 26, 2024
1 parent c74db15 commit c0f25a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions circus/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import logging.config
import os
import platform
import re
import shlex
import socket
Expand Down Expand Up @@ -93,6 +94,7 @@ def _setproctitle(title): # NOQA
_all_signals = {}

IS_WINDOWS = os.name == 'nt'
IS_MACOS = platform.system() == 'Darwin'


def get_working_dir():
Expand Down
2 changes: 1 addition & 1 deletion tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from circus.client import AsyncCircusClient, make_message
from circus.util import DEFAULT_ENDPOINT_DEALER, DEFAULT_ENDPOINT_SUB
from circus.util import tornado_sleep, ConflictError
from circus.util import IS_WINDOWS
from circus.util import IS_WINDOWS, IS_MACOS
from circus.watcher import Watcher

DEBUG = sysconfig.get_config_var('Py_DEBUG') == 1
Expand Down
3 changes: 2 additions & 1 deletion tests/test_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit c0f25a9

Please sign in to comment.