Skip to content

Commit 7c13995

Browse files
authored
Also update yield teardown for Issue pytest-dev#687
1 parent 8208a77 commit 7c13995

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/en/fixture.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ the code after the *yield* statement serves as the teardown code.::
257257
print("teardown smtp")
258258
smtp.close()
259259

260-
The ``print`` and ``smtp.close()`` statements will execute when the last test using
261-
the fixture in the module has finished execution, regardless of the exception status of the tests.
260+
The ``print`` and ``smtp.close()`` statements will execute when the last test in
261+
the module has finished execution, regardless of the exception status of the
262+
tests.
262263

263264
Let's execute it::
264265

0 commit comments

Comments
 (0)