Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amaloney committed Jun 14, 2024
1 parent 28a9503 commit ef82887
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/python/qpy/test_io_from_qpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@


def test_io():
"""Test QPy serialization and de-serialization."""

circuit = QuantumCircuit(2)
circuit.ms(1.23, [0, 1])

Expand All @@ -27,5 +29,5 @@ def test_io():

try:
_ = load(io.BytesIO(buf.getvalue()))
except Exception as e:
raise IOError("Loading to and from qpy failed.") from e
except Exception as exception:
raise IOError("Loading to and from qpy failed.") from exception

0 comments on commit ef82887

Please sign in to comment.