We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ace78 commit d62ba55Copy full SHA for d62ba55
frontend/test/pytest/python_interface/inspection/test_mlir_graph.py
@@ -14,7 +14,7 @@
14
"""Unit test module for the MLIR graph generation in the Unified Compiler visualization module."""
15
16
from pathlib import Path
17
-from subprocess import run
+from shutil import which
18
19
import pennylane as qml
20
import pytest
@@ -28,7 +28,7 @@
28
pytestmark = pytest.mark.xdsl
29
graphviz = pytest.importorskip("graphviz")
30
31
-if run(["/usr/bin/which", "dot"], check=False).returncode != 0:
+if which("dot") is None:
32
pytest.skip(reason="Graphviz isn't installed.")
33
34
0 commit comments