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

Function test_two_gets

dask/diagnostics/tests/test_profiler.py:62–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61
62def test_two_gets():
63 with prof:
64 get(dsk, "e")
65 n = len(prof.results)
66
67 dsk2 = {"x": (add, 1, 2), "y": (add, "x", "x")}
68
69 with prof:
70 get(dsk2, "y")
71 m = len(prof.results)
72
73 with prof:
74 get(dsk, "e")
75 get(dsk2, "y")
76 get(dsk, "e")
77
78 assert len(prof.results) == n + m + n
79
80
81@pytest.mark.skipif("not psutil")

Callers

nothing calls this directly

Calls 1

getFunction · 0.90

Tested by

no test coverage detected