@@ -181,7 +181,7 @@ def collect(self):
181
181
# We utilize scpdt's `find_doctests` function to discover doctests in public, non-deprecated objects in the module
182
182
# NB: additional postprocessing in pytest_collection_modifyitems
183
183
for test in find_doctests (module , strategy = "api" , name = module .__name__ , config = dt_config ):
184
- # if test.examples: # skip empty doctests # FIXME: put this back (simplifies comparing the logs)
184
+ if test .examples : # skip empty doctests
185
185
yield doctest .DoctestItem .from_parent (
186
186
self , name = test .name , runner = runner , dtest = test
187
187
)
@@ -259,10 +259,7 @@ def run(self, test, compileflags=None, out=None, clear_globs=False):
259
259
with np_errstate ():
260
260
with config .dt_config .user_context_mgr (test ):
261
261
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 )
266
263
267
264
"""
268
265
Almost verbatim copy of `_pytest.doctest.PytestDoctestRunner` except we utilize
0 commit comments