()
| 602 | bool(sys.flags.optimize), reason="graphviz exception with Python -OO flag" |
| 603 | ) |
| 604 | def test_visualize_order(): |
| 605 | pytest.importorskip("graphviz") |
| 606 | pytest.importorskip("matplotlib.pyplot") |
| 607 | x = da.arange(5, chunks=2) |
| 608 | with tmpfile(extension="dot") as fn: |
| 609 | x.visualize(color="order", filename=fn, cmap="RdBu") |
| 610 | with open(fn) as f: |
| 611 | text = f.read() |
| 612 | assert 'color="#' in text |
| 613 | |
| 614 | |
| 615 | def inc_to_dec(dsk, keys): |