Skip to content

Commit e9e9d14

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

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/base.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,22 @@ 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+
)
116+
warnings.filterwarnings(
117+
"default",
118+
module="qiskit_experiments",
119+
message=".*The curve data representation is replaced with dataframe format.*",
120+
category=PendingDeprecationWarning,
121+
)
106122

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

0 commit comments

Comments
 (0)