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 a2b9a08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
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 a2b9a08

Please sign in to comment.