File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
* Add hint to error message hinting possible missing ``__init__.py `` (`#478 `_). Thanks `@DuncanBetts `_.
5
5
6
+ * More accurately describe when fixture finalization occurs in documentation (`#687 `_). Thanks `@DuncanBetts `_.
7
+
6
8
* Provide ``:ref: `` targets for ``recwarn.rst `` so we can use intersphinx referencing.
7
9
Thanks to `@dupuy `_ for the report and `@lwm `_ for the PR.
8
10
34
36
.. _@nmundar : https://github.com/nmundar
35
37
36
38
.. _#478 : https://github.com/pytest-dev/pytest/issues/478
39
+ .. _#687 : https://github.com/pytest-dev/pytest/issues/687
37
40
.. _#2034 : https://github.com/pytest-dev/pytest/issues/2034
38
41
.. _#2038 : https://github.com/pytest-dev/pytest/issues/2038
39
42
.. _#2078 : https://github.com/pytest-dev/pytest/issues/2078
Original file line number Diff line number Diff line change @@ -318,8 +318,7 @@ the ``with`` statement ends.
318
318
request.addfinalizer(fin)
319
319
return smtp # provide the fixture value
320
320
321
- The ``fin `` function will execute when the last test using
322
- the fixture in the module has finished execution.
321
+ The ``fin `` function will execute when the last test in the module has finished execution.
323
322
324
323
This method is still fully supported, but ``yield `` is recommended from 2.10 onward because
325
324
it is considered simpler and better describes the natural code flow.
You can’t perform that action at this time.
0 commit comments