From f42a954cb3ced2dad27fd973d8316b2191cc55fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20Hellstr=C3=B6m?= Date: Tue, 29 Nov 2016 10:25:57 +0100 Subject: [PATCH] Also update yield teardown for Issue #687 --- doc/en/fixture.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/en/fixture.rst b/doc/en/fixture.rst index 07a85e9b3..bbc4a95c4 100644 --- a/doc/en/fixture.rst +++ b/doc/en/fixture.rst @@ -257,8 +257,9 @@ the code after the *yield* statement serves as the teardown code.:: print("teardown smtp") smtp.close() -The ``print`` and ``smtp.close()`` statements will execute when the last test using -the fixture in the module has finished execution, regardless of the exception status of the tests. +The ``print`` and ``smtp.close()`` statements will execute when the last test in +the module has finished execution, regardless of the exception status of the +tests. Let's execute it::