Skip to content

Commit

Permalink
Use pytest.importorskip for prometheus test (#2533)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin authored and ogrisel committed Feb 17, 2019
1 parent b5e1293 commit be472ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distributed/bokeh/tests/test_scheduler_bokeh_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be472ca

Please sign in to comment.