Skip to content

Commit d41728f

Browse files
authored
Fix: Disable pylint warnings for Qasm dump tests (#14052)
1 parent 53ea86c commit d41728f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/python/circuit/test_circuit_qasm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ def test_circuit_qasm_with_mcx_gate(self):
397397
self.assertEqual(dumps(qc), expected_qasm)
398398

399399
def test_circuit_qasm_with_mcx_gate_variants(self):
400+
# pylint: disable=line-too-long
400401
"""Test circuit qasm() method with MCXGrayCode, MCXRecursive, MCXVChain"""
401402
import qiskit.circuit.library as cl
402403

test/python/qasm2/test_export.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ def test_gate_qasm_with_ctrl_state(self):
376376
self.assertEqual(Operator(qc), Operator(qasm2.loads(qasm_str)))
377377

378378
def test_mcx_gate(self):
379+
# pylint: disable=line-too-long
379380
qc = QuantumCircuit(4)
380381
qc.mcx([0, 1, 2], 3)
381382

@@ -389,6 +390,7 @@ def test_mcx_gate(self):
389390
self.assertEqual(qasm2.dumps(qc), expected_qasm)
390391

391392
def test_mcx_gate_variants(self):
393+
# pylint: disable=line-too-long
392394
n = 5
393395
qc = QuantumCircuit(2 * n - 1)
394396
qc.append(lib.MCXGrayCode(n), range(n + 1))

0 commit comments

Comments
 (0)