Skip to content

Commit 690373a

Browse files
committed
Update CHANGELOG (yield statements in normal fixtures)
1 parent 74699ea commit 690373a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636

3737
**Changes**
3838

39+
* Fixtures marked with ``@pytest.fixture`` can now use ``yield`` statements exactly like
40+
those marked with the ``@pytest.yield_fixture`` decorator. This change renders
41+
``@pytest.yield_fixture`` deprecated and makes ``@pytest.fixture`` with ``yield`` statements
42+
the preferred way to write teardown code (`#1461`_).
43+
Thanks `@csaftoiu`_ for bringing this to attention and `@nicoddemus`_ for the PR.
44+
3945
* Fix (`#1351`_):
4046
explicitly passed parametrize ids do not get escaped to ascii.
4147
Thanks `@ceridwen`_ for the PR.
@@ -58,6 +64,7 @@
5864
*
5965

6066
.. _@milliams: https://github.com/milliams
67+
.. _@csaftoiu: https://github.com/csaftoiu
6168
.. _@novas0x2a: https://github.com/novas0x2a
6269
.. _@kalekundert: https://github.com/kalekundert
6370
.. _@tareqalayan: https://github.com/tareqalayan
@@ -72,6 +79,7 @@
7279
.. _#1441: https://github.com/pytest-dev/pytest/pull/1441
7380
.. _#1454: https://github.com/pytest-dev/pytest/pull/1454
7481
.. _#1351: https://github.com/pytest-dev/pytest/issues/1351
82+
.. _#1461: https://github.com/pytest-dev/pytest/pull/1461
7583
.. _#1468: https://github.com/pytest-dev/pytest/pull/1468
7684
.. _#1474: https://github.com/pytest-dev/pytest/pull/1474
7785
.. _#1502: https://github.com/pytest-dev/pytest/pull/1502

0 commit comments

Comments
 (0)