forked from orbit-oss/flask
pytest.yield_fixture deprecated in pytest 3.0+.
It's suggested to use pytest.fixture directly, and flask already requires 'pytest>=3'.
This commit is contained in:
parent
7d4703e98a
commit
5888d76342
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ def purge_module(request):
|
||||||
return inner
|
return inner
|
||||||
|
|
||||||
|
|
||||||
@pytest.yield_fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def catch_deprecation_warnings(recwarn):
|
def catch_deprecation_warnings(recwarn):
|
||||||
yield
|
yield
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue