changelog: some consistency cleanups

This commit is contained in:
Ran Benita 2020-09-26 20:04:17 +03:00
parent d3f47bf346
commit d3c746eb8e
9 changed files with 21 additions and 20 deletions

View File

@ -1,4 +1,4 @@
Fix error when overwriting a parametrized fixture, while also reusing the super fixture value. Fixed error when overwriting a parametrized fixture, while also reusing the super fixture value.
.. code-block:: python .. code-block:: python

View File

@ -1,4 +1,4 @@
As per our policy, the following features have been deprecated in the 5.X series and are now As per our policy, the following features which have been deprecated in the 5.X series are now
removed: removed:
* The ``funcargnames`` read-only property of ``FixtureRequest``, ``Metafunc``, and ``Function`` classes. Use ``fixturenames`` attribute. * The ``funcargnames`` read-only property of ``FixtureRequest``, ``Metafunc``, and ``Function`` classes. Use ``fixturenames`` attribute.

View File

@ -1 +1 @@
Deprecate the ``pytest.collect`` module: all its names can be imported from ``pytest`` directly. The ``pytest.collect`` module is deprecated: all its names can be imported from ``pytest`` directly.

View File

@ -1,6 +1,6 @@
The ``pytest._fillfuncargs`` function is now deprecated. This function was kept The ``pytest._fillfuncargs`` function is deprecated. This function was kept
for backward compatibility with an older plugin. for backward compatibility with an older plugin.
It's functionality is not meant to be used directly, but if you must replace It's functionality is not meant to be used directly, but if you must replace
it, use `function._request._fillfixtures()` instead, though note this is not it, use `function._request._fillfixtures()` instead, though note this is not
a public API and may break in the future. a public API and may break in the future.

View File

@ -1,5 +1,5 @@
The special ``-k '-expr'`` syntax to ``-k`` is deprecated. Use ``-k 'not expr'`` The special ``-k '-expr'`` syntax to ``-k`` is deprecated. Use ``-k 'not expr'``
instead. instead.
The special ``-k 'expr:'`` syntax to ``-k`` is deprecated. Please open an issue The special ``-k 'expr:'`` syntax to ``-k`` is deprecated. Please open an issue
if you use this and want a replacement. if you use this and want a replacement.

View File

@ -1 +1,2 @@
The :func:`pytest_warning_captured` hook has been deprecated in favor of :func:`pytest_warning_recorded`, and will be removed in a future version. The :func:`pytest_warning_captured <_pytest.hookspec.pytest_warning_captured>` hook is deprecated in favor
of :func:`pytest_warning_recorded <_pytest.hookspec.pytest_warning_recorded>`, and will be removed in a future version.

View File

@ -1 +1 @@
Fix test collection when a full path without a drive letter was passed to pytest on Windows (for example ``\projects\tests\test.py`` instead of ``c:\projects\tests\pytest.py``). Fixed test collection when a full path without a drive letter was passed to pytest on Windows (for example ``\projects\tests\test.py`` instead of ``c:\projects\tests\pytest.py``).

View File

@ -1,6 +1,6 @@
When collecting tests, pytest finds test classes and functions by examining the When collecting tests, pytest finds test classes and functions by examining the
attributes of python objects (modules, classes and instances). To speed up this attributes of python objects (modules, classes and instances). To speed up this
process, pytest now ignores builtin attributes (like ``__class__``, process, pytest now ignores builtin attributes (like ``__class__``,
``__delattr__`` and ``__new__``) without consulting the ``python_classes`` and ``__delattr__`` and ``__new__``) without consulting the :confval:`python_classes` and
``python_functions`` configuration options and without passing them to plugins :confval:`python_functions` configuration options and without passing them to plugins
using the ``pytest_pycollect_makeitem`` hook. using the :func:`pytest_pycollect_makeitem <_pytest.hookspec.pytest_pycollect_makeitem>` hook.

View File

@ -1 +1 @@
Fix INTERNALERROR when accessing locals / globals with faulty ``exec``. Fixed INTERNALERROR when accessing locals / globals with faulty ``exec``.