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

Function test_ordering

dask/tests/test_local.py:161–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160
161def test_ordering():
162 L = []
163
164 def append(i):
165 L.append(i)
166
167 dsk = {("x", i): (append, i) for i in range(10)}
168 x_keys = sorted(dsk)
169 dsk["y"] = (lambda *args: None, list(x_keys))
170
171 get_sync(dsk, "y")
172
173 assert L == sorted(L, reverse=True)
174
175
176def test_complex_ordering():

Callers

nothing calls this directly

Calls 1

get_syncFunction · 0.90

Tested by

no test coverage detected