tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

yieldfixture.rst (472B)


      1 :orphan:
      2 
      3 .. _yieldfixture:
      4 
      5 "yield_fixture" functions
      6 ---------------------------------------------------------------
      7 
      8 
      9 
     10 
     11 
     12 .. important::
     13    Since pytest-3.0, fixtures using the normal ``fixture`` decorator can use a ``yield``
     14    statement to provide fixture values and execute teardown code, exactly like ``yield_fixture``
     15    in previous versions.
     16 
     17    Marking functions as ``yield_fixture`` is still supported, but deprecated and should not
     18    be used in new code.