Skip to content

Commit

Permalink
Update test_qasm.py to avoid bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
NoriyukiK-1qbit committed Sep 27, 2023
1 parent a4ee131 commit 3b4e183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_qasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,5 @@ def test_read_qasm():
qc = read_qasm(filepath)
qc2 = read_qasm(filepath2)
assert True
except:
except SyntaxError: # inline comments caused SyntaxError
assert False

0 comments on commit 3b4e183

Please sign in to comment.