From 7c1399561fb1f1d3d6b81acf53d59dd2adb277d0 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 510a4edf98e..49bc4585b5c 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::