Skip to content

Commit

Permalink
optional dep
Browse files Browse the repository at this point in the history
  • Loading branch information
1ucian0 committed Feb 28, 2023
1 parent a9f2d91 commit 91069ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/python/visualization/test_circuit_text_drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@
CPhaseGate,
)
from qiskit.transpiler.passes import ApplyLayout
from qiskit.circuit.classicalfunction import classical_function
from qiskit.circuit.classicalfunction.types import Int1
from qiskit.utils.optionals import HAS_TWEEDLEDUM
from .visualization import path_to_diagram_reference, QiskitVisualizationTestCase

if HAS_TWEEDLEDUM:
from qiskit.circuit.classicalfunction import classical_function
from qiskit.circuit.classicalfunction.types import Int1


class TestTextDrawerElement(QiskitTestCase):
"""Draw each element"""
Expand Down Expand Up @@ -1218,6 +1221,7 @@ def test_text_spacing_2378(self):
circuit.rz(11111, qr[2])
self.assertEqual(str(_text_circuit_drawer(circuit)), expected)

@unittest.skipUnless(HAS_TWEEDLEDUM, "Tweedledum is required for these tests.")
def test_text_synth_no_registerless(self):
"""Test synthesis's label when registerless=False.
See https://github.com/Qiskit/qiskit-terra/issues/9363"""
Expand Down

0 comments on commit 91069ad

Please sign in to comment.