Skip to content

Commit

Permalink
MAINT: stop blank filtering out deprecation warnings
Browse files Browse the repository at this point in the history
Filter them out in user_context_mgr instead.
  • Loading branch information
ev-br committed Feb 22, 2024
1 parent 1496c51 commit 4c8ff06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scpdt/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,7 @@ def run(self, test, compileflags=None, out=None, clear_globs=False):
with np_errstate():
with config.dt_config.user_context_mgr(test):
with matplotlib_make_nongui():
# XXX: might want to add the filter to `testmod`, too
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
super().run(test, compileflags=compileflags, out=out, clear_globs=clear_globs)
super().run(test, compileflags=compileflags, out=out, clear_globs=clear_globs)

"""
Almost verbatim copy of `_pytest.doctest.PytestDoctestRunner` except we utilize
Expand Down

0 comments on commit 4c8ff06

Please sign in to comment.