Skip to content

Commit

Permalink
Add filter for obj_id warning triggered by qiskit-aer returning a Res…
Browse files Browse the repository at this point in the history
…ult object.
  • Loading branch information
ElePT committed Feb 18, 2025
1 parent ea3c5ff commit 8e64ea0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ def setUpClass(cls):
module="qiskit_aer",
)

# Safe to remove once https://github.com/Qiskit/qiskit-aer/pull is in a release version
# of Aer.
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message=r".*argument ``qobj_id`` is deprecated as of Qiskit 1.4.*",
)

# Remove these two filters in Qiskit 2.0.0 when we remove unit and duration
warnings.filterwarnings(
"ignore",
Expand Down

0 comments on commit 8e64ea0

Please sign in to comment.