Revert minor fixtures.rst edits.

This commit is contained in:
aizpurua23a 2022-07-26 21:30:07 +02:00 committed by GitHub
parent 84d89969fb
commit 5b3e2d94f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -680,6 +680,8 @@ So to make sure we don't run the finalizer code when we wouldn't need to, we
would only add the finalizer once the fixture would have done something that would only add the finalizer once the fixture would have done something that
we'd need to teardown. we'd need to teardown.
Here's how the previous example would look using the ``addfinalizer`` method:
.. code-block:: python .. code-block:: python
# content of test_emaillib.py # content of test_emaillib.py
@ -727,7 +729,6 @@ we'd need to teardown.
assert email in receiving_user.inbox assert email in receiving_user.inbox
Here's how the previous example would look using the ``addfinalizer`` method:
It's a bit longer than yield fixtures and a bit more complex, but it It's a bit longer than yield fixtures and a bit more complex, but it
does offer some nuances for when you're in a pinch. does offer some nuances for when you're in a pinch.