Skip to content

Commit f9afcd2

Browse files
authored
More pytest 7 changelog fixes (#9285)
* Remove changelog entry for #8251 Reverted in #8903 * Move #9202 changelog to to trivial This won't concern users of pytest * Streamline deprecation changelogs/docs * Remove #8994 changelog This is an impovement for a warning introduced in this release, so including it in a changelog against the last release seems confusing. * Remove #9241 changelog This is an impovement for a doc update introduced in this release, so including it in a changelog against the last release seems confusing. The issue number also seems about something different. * Remove #8897 changelog Empty file... * Various minor changelog fixes
1 parent d6e6b96 commit f9afcd2

14 files changed

+50
-20
lines changed

changelog/451.doc.rst

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

changelog/7259.breaking.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ Since `py.path.local` is a `os.PathLike[str]`, these plugins are unaffacted.
55

66
Plugins and users which call `reportinfo()`, use the first return value and interact with it as a `py.path.local`, would need to adjust by calling `py.path.local(fspath)`.
77
Although preferably, avoid the legacy `py.path.local` and use `pathlib.Path`, or use `item.location` or `item.path`, instead.
8+
89
Note: pytest was not able to provide a deprecation period for this change.

changelog/7864.improvement.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Improved error messages when parsing warning filters.
22

3-
Previously pytest would show an internal traceback, which besides ugly sometimes would hide the cause
3+
Previously pytest would show an internal traceback, which besides being ugly sometimes would hide the cause
44
of the problem (for example an ``ImportError`` while importing a specific warning type).

changelog/8061.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fixed failing staticmethod test cases if they are inherited from a parent test class.
1+
Fixed failing ``staticmethod`` test cases if they are inherited from a parent test class.

changelog/8133.trivial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Migrate to setuptools_scm 6.x to use SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST for more robust release tooling.
1+
Migrate to ``setuptools_scm`` 6.x to use ``SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST`` for more robust release tooling.

changelog/8251.deprecation.rst

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

changelog/8447.deprecation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.
1+
Defining a custom pytest node type which is both an :class:`pytest.Item <Item>` and a :class:`pytest.Collector <Collector>` (e.g. :class:`pytest.File <File>`) now issues a warning.
22
It was never sanely supported and triggers hard to debug errors.
33

4-
Instead, a separate collector node should be used, which collects the item. See :ref:`non-python tests` for an example.
4+
See :ref:`the deprecation note <diamond-inheritance-deprecated>` for full details.

changelog/8592.deprecation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
:func:`pytest_cmdline_preparse <_pytest.hookspec.pytest_cmdline_preparse>` has been officially deprecated. It will be removed in a future release. Use :func:`pytest_load_initial_conftests <_pytest.hookspec.pytest_load_initial_conftests>` instead.
2+
3+
See :ref:`the deprecation note <cmdline-preparse-deprecated>` for full details.

changelog/8803.improvement.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
It is now possible to add colors to custom log levels on cli log.
22

3-
By using :func:`add_color_level <_pytest.logging.add_color_level` from a ``pytest_configure`` hook, colors can be added::
3+
By using :func:`add_color_level <_pytest.logging.add_color_level>` from a ``pytest_configure`` hook, colors can be added::
44

55
logging_plugin = config.pluginmanager.get_plugin('logging-plugin')
66
logging_plugin.log_cli_handler.formatter.add_color_level(logging.INFO, 'cyan')
77
logging_plugin.log_cli_handler.formatter.add_color_level(logging.SPAM, 'blue')
88

9-
See :ref:`log_colors` for more information.
9+
See :ref:`log_colors` for more information.

changelog/8897.doc.rst

Whitespace-only changes.

0 commit comments

Comments
 (0)