Skip to content

Commit

Permalink
Add exception for deprecated ScatterTable method usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Jan 11, 2024
1 parent 1741ef1 commit e9e9d14
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ def setUpClass(cls):
# warnings. In that case, the test should catch the warning
# assertWarns or warnings.catch_warnings.
warnings.filterwarnings("error", module="qiskit_experiments")
# Ideally, changes introducing pending deprecations should include
# alternative code paths and not need to generate warnings in the
# tests but until this exception is necessary until the use of the
# deprecated ScatterTable methods are removed.
warnings.filterwarnings(
"default",
module="qiskit_experiments",
message=".*Curve data uses dataframe representation.*",
category=PendingDeprecationWarning,
)
warnings.filterwarnings(
"default",
module="qiskit_experiments",
message=".*The curve data representation is replaced with dataframe format.*",
category=PendingDeprecationWarning,
)

# Some functionality may be deprecated in Qiskit Experiments. If
# the deprecation warnings aren't filtered, the tests will fail as
Expand Down

0 comments on commit e9e9d14

Please sign in to comment.