Files
pytest2/doc/en/yieldfixture.rst
Bruno Oliveira 9c5da9c0d1 Remove all version references to obsolete pytest versions
Remove version references to pytest 2 and 3.

Just like Python 3 no longer has references to Python 2, I think
we should follow the same approach in pytest.
2019-04-28 12:37:58 -03:00

19 lines
472 B
ReStructuredText

:orphan:
.. _yieldfixture:
"yield_fixture" functions
---------------------------------------------------------------
.. important::
Since pytest-3.0, fixtures using the normal ``fixture`` decorator can use a ``yield``
statement to provide fixture values and execute teardown code, exactly like ``yield_fixture``
in previous versions.
Marking functions as ``yield_fixture`` is still supported, but deprecated and should not
be used in new code.