test_ok2/changelog/5180.removal.rst

23 lines
797 B
ReStructuredText
Raw Normal View History

As per our policy, the following features have been deprecated in the 4.X series and are now
2019-06-30 22:02:46 +08:00
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.
2019-06-30 23:24:51 +08:00
* ``pytest.config`` global variable.
2019-06-30 23:27:29 +08:00
* ``tmpdir_factory.ensuretemp`` method.
2019-06-30 23:30:08 +08:00
* ``pytest_logwarning`` hook.
For more information consult
`Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__ in the docs.