Skip to content

Commit 7768f6c

Browse files
authored
Don't use bokeh Figure in tests (#6721)
1 parent 1d0701b commit 7768f6c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

distributed/diagnostics/tests/test_task_stream.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,18 @@ def test_client_sync(client):
133133

134134
@gen_cluster(client=True)
135135
async def test_get_task_stream_plot(c, s, a, b):
136-
bokeh = pytest.importorskip("bokeh")
136+
bkm = pytest.importorskip("bokeh.models")
137137
await c.get_task_stream()
138138

139139
futures = c.map(slowinc, range(10), delay=0.1)
140140
await wait(futures)
141141

142142
data, figure = await c.get_task_stream(plot=True)
143-
assert isinstance(figure, bokeh.plotting.Figure)
143+
assert isinstance(figure, bkm.Plot)
144144

145145

146146
def test_get_task_stream_save(client, tmpdir):
147-
bokeh = pytest.importorskip("bokeh")
147+
bkm = pytest.importorskip("bokeh.models")
148148
tmpdir = str(tmpdir)
149149
fn = os.path.join(tmpdir, "foo.html")
150150

@@ -155,4 +155,4 @@ def test_get_task_stream_save(client, tmpdir):
155155
assert "inc" in data
156156
assert "bokeh" in data
157157

158-
assert isinstance(ts.figure, bokeh.plotting.Figure)
158+
assert isinstance(ts.figure, bkm.Plot)

0 commit comments

Comments
 (0)