Skip to content

Files

18 lines (10 loc) · 472 Bytes

yieldfixture.rst

File metadata and controls

18 lines (10 loc) · 472 Bytes
orphan:

"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.