Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Peña Tapia <[email protected]>
  • Loading branch information
1ucian0 and ElePT authored Jul 30, 2024
1 parent ae46bcc commit b672edd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/python/providers/test_fake_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_circuit_on_fake_backend(self, backend, optimization_level):
)
with self.assertWarnsRegex(
DeprecationWarning,
expected_regex="The function transpile will stop supporting BackendV1",
expected_regex="The `transpile` function will stop supporting inputs of type `BackendV1`",
):
transpiled = transpile(
self.circuit, backend, seed_transpiler=42, optimization_level=optimization_level
Expand Down Expand Up @@ -227,7 +227,7 @@ def test_delay_circuit(self):
qc.measure_all()
with self.assertWarnsRegex(
DeprecationWarning,
expected_regex="The function transpile will stop supporting BackendV1",
expected_regex="The `transpile` function will stop supporting inputs of type `BackendV1`",
):
res = transpile(qc, backend)
self.assertIn("delay", res.count_ops())
Expand Down
4 changes: 2 additions & 2 deletions test/python/transpiler/test_preset_passmanagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def test_v1(self, circuit, level, backend):
"""All the levels with all the backends"""
with self.assertWarnsRegex(
DeprecationWarning,
expected_regex="The function transpile will stop supporting BackendV1",
expected_regex="The `transpile` function will stop supporting inputs of type `BackendV1`",
):
result = transpile(
circuit(), backend=backend, optimization_level=level, seed_transpiler=42
Expand Down Expand Up @@ -1287,7 +1287,7 @@ def test_with_backend(self, optimization_level):
backend = Fake20QV1()
with self.assertWarnsRegex(
DeprecationWarning,
expected_regex="The function generate_preset_pass_manager will stop supporting BackendV1",
expected_regex="The `generate_preset_pass_manager` function will stop supporting inputs of type `BackendV1`",
):
pm = generate_preset_pass_manager(optimization_level, backend)
self.assertIsInstance(pm, PassManager)
Expand Down

0 comments on commit b672edd

Please sign in to comment.