From 8e8483f40f5852b82a2667ca93c75cda328c66d8 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 18 Nov 2020 02:27:34 +0100 Subject: xfail test_wait_publishes_periodically() on macOS A targeted subset of #1877 which [happens on both CircleCI and Travis CI](https://github.com/cherrypy/cherrypy/pull/1877/files#r524250775). --- cherrypy/test/test_bus.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cherrypy/test/test_bus.py b/cherrypy/test/test_bus.py index 83d89a6e..74a36e00 100644 --- a/cherrypy/test/test_bus.py +++ b/cherrypy/test/test_bus.py @@ -1,6 +1,8 @@ """Publish-subscribe bus tests.""" # pylint: disable=redefined-outer-name +import os +import sys import threading import time import unittest.mock @@ -10,6 +12,7 @@ import pytest from cherrypy.process import wspbus +CI_ON_MACOS = bool(os.getenv("CI")) and sys.platform == "darwin" msg = 'Listener %d on channel %s: %s.' # pylint: disable=invalid-name @@ -218,6 +221,7 @@ def test_wait(bus): assert bus.state in states, 'State %r not in %r' % (bus.state, states) +@pytest.mark.xfail(CI_ON_MACOS, reason="continuous integration on macOS fails") def test_wait_publishes_periodically(bus): """Test that wait publishes each tick.""" callback = unittest.mock.MagicMock() -- cgit v1.2.1