Skip to content
Myr

pytest.yield_fixture deprecated in pytest 3.0+.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

It's suggested to use pytest.fixture directly, and flask already requires 'pytest>=3'.

authored by Chuan Ma · committed by Chuan Ma · parent 7d4703e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/conftest.py+1 added-1 removed
159 unmodified lines
160161 return inner162163164@pytest.yield_fixture(autouse=True)164@pytest.fixture(autouse=True)165def catch_deprecation_warnings(recwarn):166 yield167 gc.collect()168 assert not recwarn.list, '\n'.join(str(w.message) for w in recwarn.list)