Skip to content

Commit

Permalink
use dot pipe rather than tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Aug 29, 2024
1 parent 492f478 commit fa4a818
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hugr-py/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import subprocess
from dataclasses import dataclass
from enum import Enum
from tempfile import NamedTemporaryFile
from typing import TYPE_CHECKING, TypeVar

from typing_extensions import Self
Expand Down Expand Up @@ -166,9 +165,7 @@ def validate(
dot = h.render_dot()
assert snap == dot.source
if os.environ.get("HUGR_RENDER_DOT"):
with NamedTemporaryFile(mode="w", delete=True) as f:
# test rendering succeeds
dot.render(f.name)
dot.pipe("svg")


def _run_hugr_cmd(serial: str, cmd: list[str]):
Expand Down

0 comments on commit fa4a818

Please sign in to comment.