Replace yield_fixture -> fixture in internal code

`yield_fixture` is a deprecated alias to `fixture`.
This commit is contained in:
Ran Benita
2020-06-25 14:05:46 +03:00
parent d69e9e60d6
commit f00bec2a12
6 changed files with 9 additions and 12 deletions

View File

@@ -13,14 +13,14 @@ from typing import Union
from _pytest.compat import overload
from _pytest.compat import TYPE_CHECKING
from _pytest.fixtures import yield_fixture
from _pytest.fixtures import fixture
from _pytest.outcomes import fail
if TYPE_CHECKING:
from typing import Type
@yield_fixture
@fixture
def recwarn():
"""Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.