Skip to content

Commit

Permalink
removing lint exclusion statement in favor of unused variable (#12164)
Browse files Browse the repository at this point in the history
  • Loading branch information
joesho112358 committed Apr 10, 2024
1 parent e48b4c4 commit 01e9a7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/python/circuit/library/test_state_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ def test_incompatible_state_and_qubit_args(self):

def test_incompatible_int_state_and_qubit_args(self):
"""Test error raised if number of qubits not compatible with integer state arg"""
# pylint: disable=pointless-statement
with self.assertRaises(QiskitError):
stateprep = StatePreparation(5, num_qubits=2)
stateprep.definition
_ = stateprep.definition

def test_int_state_and_no_qubit_args(self):
"""Test automatic determination of qubit number"""
Expand Down
3 changes: 1 addition & 2 deletions test/python/circuit/test_circuit_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,7 @@ def test_scheduling(self):
qc.cx(0, 1)

with self.assertRaises(AttributeError):
# pylint: disable=pointless-statement
qc.op_start_times
_ = qc.op_start_times


if __name__ == "__main__":
Expand Down
3 changes: 1 addition & 2 deletions test/python/pulse/test_pulse_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,7 @@ def test_get_parameters(self):
self.assertEqual(drag_pulse.beta, 3)

with self.assertRaises(AttributeError):
# pylint: disable=pointless-statement
drag_pulse.non_existing_parameter
_ = drag_pulse.non_existing_parameter

def test_envelope_cache(self):
"""Test speed up of instantiation with lambdify envelope cache."""
Expand Down

0 comments on commit 01e9a7c

Please sign in to comment.