Eliminate some resource warnings

This commit is contained in:
Markus Unterwaditzer 2016-06-03 14:19:25 +02:00
parent 293eb583f6
commit 6c359e0f53
3 changed files with 26 additions and 19 deletions

View file

@ -7,6 +7,7 @@
:license: BSD, see LICENSE for more details.
"""
import flask
import gc
import os
import sys
import pkgutil
@ -129,4 +130,5 @@ def purge_module(request):
@pytest.yield_fixture(autouse=True)
def catch_deprecation_warnings(recwarn):
yield
gc.collect()
assert not recwarn.list