add changelog entry and documentation note about RecordedWarning

This commit is contained in:
Ronny Pfannschmidt
2016-10-24 15:28:35 +02:00
parent e9668d75b8
commit b3c337db00
2 changed files with 7 additions and 0 deletions

View File

@@ -92,6 +92,9 @@ Each recorded warning has the attributes ``message``, ``category``,
class of the warning. The ``message`` is the warning itself; calling
``str(message)`` will return the actual message of the warning.
.. note::
:class:`RecordedWarning` was changed from a plain class to a namedtuple in pytest 3.1
.. note::
``DeprecationWarning`` and ``PendingDeprecationWarning`` are treated
differently; see :ref:`ensuring_function_triggers`.