Skip to content

Commit

Permalink
Fix mocking code (#1372)
Browse files Browse the repository at this point in the history
Embarassingly, #1368 broke the mocking code as `warnings` was never
imported. I didn't notice because `kernel.execute` doesn't report if the
execution fails. I'm making a companion PR to catch this.
  • Loading branch information
frankharkins authored May 14, 2024
1 parent a9ddecb commit f170d21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/nb-tester/qiskit_docs_notebook_tester/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

# If not submitting jobs, we also run this code before notebook execution to mock the real backend
MOCKING_CODE = """\
import warnings
from qiskit_ibm_runtime import QiskitRuntimeService
from qiskit.providers.fake_provider import GenericBackendV2
Expand Down

0 comments on commit f170d21

Please sign in to comment.