Skip to content

Commit ae5d5b8

Browse files
authored
Merge pull request pytest-dev#4552 from nicoddemus/review-changelog-entries
Review changelog entries for features branch
2 parents 437f44a + 9898717 commit ae5d5b8

16 files changed

+40
-20
lines changed

changelog/3050.deprecation.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
Deprecate ``pytest.config`` global. See https://docs.pytest.org/en/latest/deprecations.html#pytest-config-global
1+
Deprecated the ``pytest.config`` global.
2+
3+
See https://docs.pytest.org/en/latest/deprecations.html#pytest-config-global for rationale.

changelog/3079.removal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Remove support for yield tests - they are fundamentally broken because they don't support fixtures properly since collection and test execution were separated.
1+
Removed support for yield tests - they are fundamentally broken because they don't support fixtures properly since collection and test execution were separated.
22

33
See our `docs <https://docs.pytest.org/en/latest/deprecations.html#yield-tests>`__ on information on how to update your code.

changelog/3083.removal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Remove ``Metafunc.addcall``. This was the predecessor mechanism to ``@pytest.mark.parametrize``.
1+
Removed ``Metafunc.addcall``. This was the predecessor mechanism to ``@pytest.mark.parametrize``.
22

33
See our `docs <https://docs.pytest.org/en/latest/deprecations.html#metafunc-addcall>`__ on information on how to update your code.

changelog/3191.feature.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
A warning is now issued when assertions are made for ``None``.
22

3-
This is a common source of confusion among new users, which write::
3+
This is a common source of confusion among new users, which write:
44

5-
assert mocked_object.assert_called_with(3, 4, 5, key='value')
5+
.. code-block:: python
66
7-
When they should write::
7+
assert mocked_object.assert_called_with(3, 4, 5, key="value")
88
9-
mocked_object.assert_called_with(3, 4, 5, key='value')
9+
When they should write:
10+
11+
.. code-block:: python
12+
13+
mocked_object.assert_called_with(3, 4, 5, key="value")
1014
1115
Because the ``assert_called_with`` method of mock objects already executes an assertion.
1216

13-
This warning will not be issued when ``None`` is explicitly checked. An assertion like::
17+
This warning will not be issued when ``None`` is explicitly checked. An assertion like:
18+
19+
.. code-block:: python
1420
1521
assert variable is None
1622

changelog/3616.removal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Remove the deprecated compat properties for ``node.Class/Function/Module`` - use ``pytest.Class/Function/Module`` now.
1+
Removed the deprecated compat properties for ``node.Class/Function/Module`` - use ``pytest.Class/Function/Module`` now.
22

33
See our `docs <https://docs.pytest.org/en/latest/deprecations.html#internal-classes-accessed-through-node>`__ on information on how to update your code.

changelog/4278.feature.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
``CACHEDIR.TAG`` files are now created inside cache directories.
2+
3+
Those files are part of the `Cache Directory Tagging Standard <http://www.bford.info/cachedir/spec.html>`__, and can
4+
be used by backup or synchronization programs to identify pytest's cache directory as such.

changelog/4278.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/4292.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
``pytest.outcomes.Exit`` is derived from ``SystemExit`` instead of ``KeyboardInterrupt``.
1+
``pytest.outcomes.Exit`` is derived from ``SystemExit`` instead of ``KeyboardInterrupt``. This allows us to better handle ``pdb`` exiting.

changelog/4386.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Restructure ExceptionInfo object construction and ensure incomplete instances have a ``repr``/``str``.
1+
Restructured ``ExceptionInfo`` object construction and ensure incomplete instances have a ``repr``/``str``.

changelog/4416.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pdb: support keyword arguments with ``pdb.set_trace``
1+
pdb: added support for keyword arguments with ``pdb.set_trace``.
22

33
It handles ``header`` similar to Python 3.7 does it, and forwards any
44
other keyword arguments to the ``Pdb`` constructor.

0 commit comments

Comments
 (0)