Added versionchanged directives

This commit is contained in:
palaviv 2016-06-19 23:56:43 +03:00
parent c29130d400
commit f8d4cadc3d
2 changed files with 4 additions and 0 deletions

View File

@ -1337,6 +1337,8 @@ def raises(expected_exception, *args, **kwargs):
>>> with raises(ZeroDivisionError):
... 1/0
.. versionchanged:: 2.10
In the context manager form you may use the keyword argument
``message`` to specify a custom failure message::

View File

@ -85,6 +85,8 @@ and if you need to have access to the actual exception info you may use::
the actual exception raised. The main attributes of interest are
``.type``, ``.value`` and ``.traceback``.
.. versionchanged:: 2.10
In the context manager form you may use the keyword argument
``message`` to specify a custom failure message::