Deprecated since version 3.0.
New in version 2.4.
Since pytest-3.0, fixtures using the normal
fixture decorator can use a
statement to provide fixture values and execute teardown code, exactly like
in previous versions.
Marking functions as
yield_fixture is still supported, but deprecated and should not
be used in new code.