diff --git a/test/python/circuit/library/test_state_preparation.py b/test/python/circuit/library/test_state_preparation.py index f4966ab61a73..adad848a2777 100644 --- a/test/python/circuit/library/test_state_preparation.py +++ b/test/python/circuit/library/test_state_preparation.py @@ -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""" diff --git a/test/python/circuit/test_circuit_properties.py b/test/python/circuit/test_circuit_properties.py index bce49af689af..481f2fe3ca56 100644 --- a/test/python/circuit/test_circuit_properties.py +++ b/test/python/circuit/test_circuit_properties.py @@ -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__": diff --git a/test/python/pulse/test_pulse_lib.py b/test/python/pulse/test_pulse_lib.py index daf163a2c32b..9c57579d0bf1 100644 --- a/test/python/pulse/test_pulse_lib.py +++ b/test/python/pulse/test_pulse_lib.py @@ -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."""