Skip to content

Commit 8c25a14

Browse files
closes #8824 Changelog rewording for 7.0 (#8826)
* fixed changelog/*.rst docs * add author name * fixed-documents * fix issue 8761 doc * fix issue 8645 doc * fix issue 8447 doc * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5016375 commit 8c25a14

13 files changed

+14
-14
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ Eli Boyarski
107107
Elizaveta Shashkova
108108
Endre Galaczi
109109
Eric Hunsberger
110+
Eric Liu
110111
Eric Siegerman
111112
Erik Aronesty
112113
Erik M. Bray

changelog/7469.deprecation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Directly constructing the following classes is now deprecated:
99
- ``_pytest.config.argparsing.Parser``
1010
- ``_pytest.config.argparsing.OptionGroup``
1111

12-
These have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 7.0.0.
12+
These have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 8.0.0.

changelog/7469.feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ The newly-exported types are:
1414
- ``pytest.OptionGroup`` for the :class:`OptionGroup <pytest.OptionGroup>` type returned from the :func:`parser.addgroup <pytest.Parser.getgroup>` method.
1515

1616
Constructing them directly is not supported; they are only meant for use in type annotations.
17-
Doing so will emit a deprecation warning, and may become a hard-error in pytest 7.0.
17+
Doing so will emit a deprecation warning, and may become a hard-error in pytest 8.0.
1818

1919
Subclassing them is also not supported. This is not currently enforced at runtime, but is detected by type-checkers such as mypy.

changelog/8242.deprecation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Raising :class:`unittest.SkipTest` to skip collection of tests during the
22
pytest collection phase is deprecated. Use :func:`pytest.skip` instead.
33

4-
Note: This deprecation only relates to using `unittest.SkipTest` during test
4+
Note: This deprecation only relates to using :class:`unittest.SkipTest` during test
55
collection. You are probably not doing that. Ordinary usage of
66
:class:`unittest.SkipTest` / :meth:`unittest.TestCase.skipTest` /
77
:func:`unittest.skip` in unittest test cases is fully supported.

changelog/8248.trivial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Internal Restructure: let python.PyObjMixing inherit from nodes.Node to carry over typing information.
1+
Internal Restructure: let ``python.PyObjMixin`` inherit from ``nodes.Node`` to carry over typing information.

changelog/8315.deprecation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Several behaviors of :meth:`Parser.addoption <pytest.Parser.addoption>` are now
2-
scheduled for removal in pytest 7 (deprecated since pytest 2.4.0):
2+
scheduled for removal in pytest 8 (deprecated since pytest 2.4.0):
33

44
- ``parser.addoption(..., help=".. %default ..")`` - use ``%(default)s`` instead.
55
- ``parser.addoption(..., type="int/string/float/complex")`` - use ``type=int`` etc. instead.

changelog/8411.trivial.rst

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

changelog/8447.deprecation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Defining a custom pytest node type which is both an item and a collector now issues a warning.
1+
Defining a custom pytest node type which is both an :class:`pytest.Item <Item>` and a :class:`pytest.Collector <Collector>` now issues a warning.
22
It was never sanely supported and triggers hard to debug errors.
33

44
Instead, a separate collector node should be used, which collects the item. See :ref:`non-python tests` for an example.
File renamed without changes.

changelog/8509.improvement.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Fixed issue where `TestCase.setUpClass` is not called when a test has `/` in its name since pytest 6.2.0.
1+
Fixed issue where :meth:`unittest.TestCase.setUpClass` is not called when a test has `/` in its name since pytest 6.2.0.
22

3-
This refers to the path part in pytest node IDs, e.g. `TestClass::test_it` in the node ID `tests/test_file.py::TestClass::test_it`.
3+
This refers to the path part in pytest node IDs, e.g. ``TestClass::test_it`` in the node ID ``tests/test_file.py::TestClass::test_it``.
44

55
Now, instead of assuming that the test name does not contain ``/``, it is assumed that test path does not contain ``::``. We plan to hopefully make both of these work in the future.

0 commit comments

Comments
 (0)