summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2020-11-18 02:27:34 +0100
committerGitHub <noreply@github.com>2020-11-18 02:27:34 +0100
commit8e8483f40f5852b82a2667ca93c75cda328c66d8 (patch)
tree22a9e23677778c11a9a026e85c1a5e72210e7ec6
parent92fa164d701ee9472a1a1c6868a7e8f67c10aec3 (diff)
downloadcherrypy-git-8e8483f40f5852b82a2667ca93c75cda328c66d8.tar.gz
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).
-rw-r--r--cherrypy/test/test_bus.py4
1 files changed, 4 insertions, 0 deletions
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()