We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a007fcc commit 70bf207Copy full SHA for 70bf207
1 file changed
control/tests/statesp_test.py
@@ -148,7 +148,11 @@ def testEvalFr(self):
148
# Deprecated version of the call (should generate warning)
149
import warnings
150
with warnings.catch_warnings(record=True) as w:
151
- warnings.simplefilter("always")
+ # Set up warnings filter to only show warnings in control module
152
+ warnings.filterwarnings("ignore")
153
+ warnings.filterwarnings("always", module="control")
154
+
155
+ # Make sure that we get a pending deprecation warning
156
sys.evalfr(1.)
157
assert len(w) == 1
158
assert issubclass(w[-1].category, PendingDeprecationWarning)
0 commit comments