Skip to content

Commit 4c8ff06

Browse files
committed
MAINT: stop blank filtering out deprecation warnings
Filter them out in user_context_mgr instead.
1 parent 1496c51 commit 4c8ff06

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scpdt/plugin.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,7 @@ def run(self, test, compileflags=None, out=None, clear_globs=False):
259259
with np_errstate():
260260
with config.dt_config.user_context_mgr(test):
261261
with matplotlib_make_nongui():
262-
# XXX: might want to add the filter to `testmod`, too
263-
with warnings.catch_warnings():
264-
warnings.filterwarnings("ignore", category=DeprecationWarning)
265-
super().run(test, compileflags=compileflags, out=out, clear_globs=clear_globs)
262+
super().run(test, compileflags=compileflags, out=out, clear_globs=clear_globs)
266263

267264
"""
268265
Almost verbatim copy of `_pytest.doctest.PytestDoctestRunner` except we utilize

0 commit comments

Comments
 (0)