From 5888d76342ef6005af20c0b9a42426d17118570e Mon Sep 17 00:00:00 2001 From: Chuan Ma Date: Mon, 14 Aug 2017 10:25:24 -0400 Subject: [PATCH] pytest.yield_fixture deprecated in pytest 3.0+. It's suggested to use pytest.fixture directly, and flask already requires 'pytest>=3'. --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 3cca3fbf..3a8ae69e 100644 --- a/tests/conftest.py +++ b/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()