MCPcopy Create free account
hub / github.com/dask/dask / test_delayed_visualise_warn

Function test_delayed_visualise_warn

dask/tests/test_delayed.py:294–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292
293
294def test_delayed_visualise_warn():
295 # Raise a warning when user calls visualise()
296 # instead of visualize()
297 def inc(x):
298 return x + 1
299
300 z = dask.delayed(inc)(1)
301 z.compute()
302
303 with pytest.warns(
304 UserWarning, match="dask.delayed objects have no `visualise` method"
305 ):
306 z.visualise(file_name="desk_graph.svg")
307
308 # with no args
309 with pytest.warns(
310 UserWarning, match="dask.delayed objects have no `visualise` method"
311 ):
312 z.visualise()
313
314
315def test_delayed_errors():

Callers

nothing calls this directly

Calls 1

computeMethod · 0.45

Tested by

no test coverage detected