Skip to content

Commit 3ab44d2

Browse files
committed
Add exception for deprecated ScatterTable method usage
1 parent 1741ef1 commit 3ab44d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/base.py

+10
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ def setUpClass(cls):
103103
# warnings. In that case, the test should catch the warning
104104
# assertWarns or warnings.catch_warnings.
105105
warnings.filterwarnings("error", module="qiskit_experiments")
106+
# Ideally, changes introducing pending deprecations should include
107+
# alternative code paths and not need to generate warnings in the
108+
# tests but until this exception is necessary until the use of the
109+
# deprecated ScatterTable methods are removed.
110+
warnings.filterwarnings(
111+
"default",
112+
module="qiskit_experiments",
113+
message=".*Curve data uses dataframe representation.*",
114+
category=PendingDeprecationWarning,
115+
)
106116

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

0 commit comments

Comments
 (0)