diff --git a/tests/test_utils.py b/tests/test_utils.py index b32f695a..8a315916 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -231,7 +231,7 @@ class TestCache(object): class TestGetValidHistoryWithoutCurrent(object): - @pytest.yield_fixture(autouse=True) + @pytest.fixture(autouse=True) def fail_on_warning(self): warnings.simplefilter('error') yield