2019-06-30 22:48:27 +08:00
|
|
|
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.
|
2019-06-30 22:40:24 +08:00
|
|
|
|
|
|
|
* ``pytest.raises`` and ``pytest.warns`` no longer support strings as the second argument.
|
|
|
|
|
2019-06-30 22:48:27 +08:00
|
|
|
* ``message`` parameter of ``pytest.raises``.
|
|
|
|
|
2019-06-30 23:02:11 +08:00
|
|
|
* ``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 22:40:24 +08:00
|
|
|
|
|
|
|
For more information consult
|
|
|
|
`Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__ in the docs.
|