Skip to content
Snippets Groups Projects
Commit ee9451f7 authored by Alan De Smet's avatar Alan De Smet
Browse files

Note why we suppress ResourceWarning

parent 88a0e0b8
No related branches found
No related tags found
No related merge requests found
......@@ -683,6 +683,10 @@ class DownloaderTests(DTestCase):
def add_module_doctest(tests, module, context):
import warnings
import doctest
# We need to suppress ResourceWarnings that unitttest turns on but are
# supurious for doctest. Sadly, we can't restore them when done
# because the tearDown function is called _before_ some of these
# trigger.
def suppress(module):
for mod in (module.__name__, 'doctest'):
warnings.filterwarnings("ignore",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment