forked from orbit-oss/flask
Eliminate some resource warnings
This commit is contained in:
parent
293eb583f6
commit
6c359e0f53
3 changed files with 26 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue