Skip to content

Commit 1741ef1

Browse files
committed
Make all unexpected warnings from qiskit_experiments test errors
1 parent aed5d30 commit 1741ef1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def setUpClass(cls):
9999
super().setUpClass()
100100

101101
warnings.filterwarnings("error", category=DeprecationWarning)
102+
# Tests should not generate any warnings unless testing those
103+
# warnings. In that case, the test should catch the warning
104+
# assertWarns or warnings.catch_warnings.
105+
warnings.filterwarnings("error", module="qiskit_experiments")
102106

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

0 commit comments

Comments
 (0)