Browse Source

pytest.yield_fixture deprecated in pytest 3.0+.

It's suggested to use pytest.fixture directly,
and flask already requires 'pytest>=3'.
pull/2446/head
Chuan Ma 7 years ago
parent
commit
5888d76342
  1. 2
      tests/conftest.py

2
tests/conftest.py

@ -161,7 +161,7 @@ def purge_module(request):
return inner
@pytest.yield_fixture(autouse=True)
@pytest.fixture(autouse=True)
def catch_deprecation_warnings(recwarn):
yield
gc.collect()

Loading…
Cancel
Save