Skip to content

Commit 36d182e

Browse files
authored
Merge pull request #3404 from med-ayssar/ticket-3390
Check if dot binary exists
2 parents f300df9 + bfffc82 commit 36d182e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: testsuite/pytests/test_visualization.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@
3939
PLOTTING_POSSIBLE = False
4040

4141
try:
42+
import shutil
43+
4244
import pydot # noqa: F401
4345

44-
HAVE_PYDOT = True
46+
HAVE_PYDOT = shutil.which("dot") is not None
4547
except ImportError:
4648
HAVE_PYDOT = False
4749

0 commit comments

Comments
 (0)