Skip to content

Commit

Permalink
add in pytest.importorskip('graphviz')
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Mar 16, 2019
1 parent eb53ec3 commit d65202f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dask/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ def test_visualize():
@pytest.mark.skipif(sys.flags.optimize,
reason="graphviz exception with Python -OO flag")
def test_visualize_lists(tmpdir):
pytest.importorskip('graphviz')
fn = os.path.join(str(tmpdir), 'myfile.dot')
dask.visualize([{'abc-xyz': (add, 1, 2)}], filename=fn)
with open(fn) as f:
Expand Down

0 comments on commit d65202f

Please sign in to comment.