From 5e11e8d2e72a885492e33d02567def606a989d40 Mon Sep 17 00:00:00 2001 From: Matthew Rocklin Date: Sat, 16 Feb 2019 15:15:12 -0800 Subject: [PATCH] Use pytest.importorskip for prometheus test See https://github.com/cloudpipe/cloudpickle/pull/246#issuecomment-464365951 --- distributed/bokeh/tests/test_scheduler_bokeh_html.py | 1 + 1 file changed, 1 insertion(+) diff --git a/distributed/bokeh/tests/test_scheduler_bokeh_html.py b/distributed/bokeh/tests/test_scheduler_bokeh_html.py index a372b42b9a7..c2e5d3220ed 100644 --- a/distributed/bokeh/tests/test_scheduler_bokeh_html.py +++ b/distributed/bokeh/tests/test_scheduler_bokeh_html.py @@ -66,6 +66,7 @@ def test_prefix(c, s, a, b): check_new_threads=False, scheduler_kwargs={'services': {('bokeh', 0): BokehScheduler}}) def test_prometheus(c, s, a, b): + pytest.importorskip('prometheus_client') http_client = AsyncHTTPClient() response = yield http_client.fetch('http://localhost:%d/metrics' % s.services['bokeh'].port)