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)