27 lines
894 B
ReStructuredText
27 lines
894 B
ReStructuredText
As per our policy, the following features have been deprecated in the 4.X series and are now
|
|
removed:
|
|
|
|
* ``Request.getfuncargvalue``: use ``Request.getfixturevalue`` instead.
|
|
|
|
* ``pytest.raises`` and ``pytest.warns`` no longer support strings as the second argument.
|
|
|
|
* ``message`` parameter of ``pytest.raises``.
|
|
|
|
* ``pytest.raises``, ``pytest.warns`` and ``ParameterSet.param`` now use native keyword-only
|
|
syntax. This might change the exception message from previous versions, but they still raise
|
|
``TypeError`` on unknown keyword arguments as before.
|
|
|
|
* ``pytest.config`` global variable.
|
|
|
|
* ``tmpdir_factory.ensuretemp`` method.
|
|
|
|
* ``pytest_logwarning`` hook.
|
|
|
|
* ``RemovedInPytest4Warning`` warning type.
|
|
|
|
* ``request`` is now a reserved name for fixtures.
|
|
|
|
|
|
For more information consult
|
|
`Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__ in the docs.
|