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

Function test_string_ordering

dask/tests/test_order.py:657–666  ·  view source on GitHub ↗

Prefer ordering tasks by name first

()

Source from the content-addressed store, hash-verified

655
656
657def test_string_ordering():
658 """Prefer ordering tasks by name first"""
659 dsk = {("a", 1): (f,), ("a", 2): (f,), ("a", 3): (f,)}
660 o = order(dsk)
661 assert_topological_sort(dsk, o)
662 assert o == {("a", 1): 0, ("a", 2): 1, ("a", 3): 2} or o == {
663 ("a", 1): 2,
664 ("a", 2): 1,
665 ("a", 3): 0,
666 }
667
668
669@pytest.mark.xfail(reason="see comment", strict=False)

Callers

nothing calls this directly

Calls 2

orderFunction · 0.90
assert_topological_sortFunction · 0.85

Tested by

no test coverage detected