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

Function test_register

dask/diagnostics/tests/test_profiler.py:167–177  ·  view source on GitHub ↗
(profiler)

Source from the content-addressed store, hash-verified

165 ],
166)
167def test_register(profiler):
168 prof = profiler()
169 try:
170 prof.register()
171 get(dsk2, "c")
172 n = len(prof.results)
173 assert n > 0
174 get(dsk2, "c")
175 assert len(prof.results) > n
176 finally:
177 prof.unregister()
178
179
180@pytest.mark.skipif("not bokeh")

Callers

nothing calls this directly

Calls 3

getFunction · 0.90
unregisterMethod · 0.80
registerMethod · 0.45

Tested by

no test coverage detected