Prefer ordering tasks by name first
()
| 655 | |
| 656 | |
| 657 | def 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) |
nothing calls this directly
no test coverage detected