Skip to content

Commit

Permalink
Improved description of functionality for Issue pytest-dev#687
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Betts committed Nov 28, 2016
1 parent 0735d45 commit 334b96c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/en/fixture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ the ``with`` statement ends.
request.addfinalizer(fin)
return smtp # provide the fixture value

The ``fin`` function will execute when the last test using
the fixture in the module has finished execution.
The ``fin`` function will execute when the last test in the module has finished execution.

This method is still fully supported, but ``yield`` is recommended from 2.10 onward because
it is considered simpler and better describes the natural code flow.
Expand Down

0 comments on commit 334b96c

Please sign in to comment.