1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 20:11:17 +00:00

#N/A: Fix yield_fixture deprecation (#1211)

This commit is contained in:
Abraham Chan 2021-06-29 12:26:13 -07:00 committed by GitHub
parent 06e14afd17
commit 2f4adcf3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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