Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-cqc committed Oct 26, 2023
1 parent c043c79 commit 7219a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytket/tests/qasm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,10 @@ def test_register_name_check() -> None:
qb = Qubit("Q", 0)
c.add_qubit(qb)
c.H(qb)
with pytest.raises(QASMUnsupportedError) as e:
with pytest.raises(QASMUnsupportedError) as e2:
qasm = circuit_to_qasm_str(c)
err_msg = "Invalid register name 'Q'"
assert err_msg in str(e.value)
assert err_msg in str(e2.value)


if __name__ == "__main__":
Expand Down

0 comments on commit 7219a44

Please sign in to comment.