Skip to content

Commit 5e11e8d

Browse files
committed
Use pytest.importorskip for prometheus test
See cloudpipe/cloudpickle#246 (comment)
1 parent b5e1293 commit 5e11e8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: distributed/bokeh/tests/test_scheduler_bokeh_html.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_prefix(c, s, a, b):
6666
check_new_threads=False,
6767
scheduler_kwargs={'services': {('bokeh', 0): BokehScheduler}})
6868
def test_prometheus(c, s, a, b):
69+
pytest.importorskip('prometheus_client')
6970
http_client = AsyncHTTPClient()
7071
response = yield http_client.fetch('http://localhost:%d/metrics'
7172
% s.services['bokeh'].port)

0 commit comments

Comments
 (0)