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

Function test_prefer_deep

dask/tests/test_order.py:447–463  ·  view source on GitHub ↗

c | e b | | d a Prefer longer chains first so we should start with d

(abcde)

Source from the content-addressed store, hash-verified

445
446
447def test_prefer_deep(abcde):
448 """
449 c
450 |
451 e b
452 | |
453 d a
454
455 Prefer longer chains first so we should start with d
456 """
457 a, b, c, d, e = abcde
458 dsk = {a: 1, b: (f, a), c: (f, b), d: 1, e: (f, d)}
459
460 o = order(dsk)
461 assert_topological_sort(dsk, o)
462 assert o[a] < o[d]
463 assert o[b] < o[d]
464
465
466def test_stacklimit(abcde):

Callers

nothing calls this directly

Calls 2

orderFunction · 0.90
assert_topological_sortFunction · 0.85

Tested by

no test coverage detected