Skip to content

Commit de4b635

Browse files
authored
Fix integration test (#2559)
* fixed test by skipping backends * text
1 parent 10aea64 commit de4b635

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/integration/test_fake_backends.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,21 @@ def setUpClass(cls):
6464
@unpack
6565
def test_circuit_on_fake_backend_v2(self, backend, optimization_level):
6666
if not optionals.HAS_AER and backend.num_qubits > 20:
67+
self.skipTest(f"Unable to run fake_backend {backend.backend_name} without qiskit-aer")
68+
if backend.name in {
69+
"fake_almaden",
70+
"fake_burlington",
71+
"fake_cambridge",
72+
"fake_essex",
73+
"fake_johannesburg",
74+
"fake_london",
75+
"fake_poughkeepsie",
76+
"fake_rochester",
77+
"fake_singapore",
78+
}:
6779
self.skipTest(
68-
"Unable to run fake_backend {} without qiskit-aer".format(backend.backend_name)
80+
f"Unable to run fake_backend {backend.backend_name} since its configuration does "
81+
"not have a 'supported_instructions' attribute."
6982
)
7083
backend.set_options(seed_simulator=42)
7184
pm = generate_preset_pass_manager(backend=backend, optimization_level=optimization_level)

0 commit comments

Comments
 (0)