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 3ab44d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ 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,
)

# 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 3ab44d2

Please sign in to comment.