File tree Expand file tree Collapse file tree
distributed/diagnostics/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,18 +133,18 @@ def test_client_sync(client):
133133
134134@gen_cluster (client = True )
135135async 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
146146def 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 )
You can’t perform that action at this time.
0 commit comments