Skip to content

Commit

Permalink
Merge pull request #3404 from med-ayssar/ticket-3390
Browse files Browse the repository at this point in the history
Check if dot binary exists
  • Loading branch information
heplesser authored Feb 10, 2025
2 parents f300df9 + bfffc82 commit 36d182e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testsuite/pytests/test_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@
PLOTTING_POSSIBLE = False

try:
import shutil

import pydot # noqa: F401

HAVE_PYDOT = True
HAVE_PYDOT = shutil.which("dot") is not None
except ImportError:
HAVE_PYDOT = False

Expand Down

0 comments on commit 36d182e

Please sign in to comment.