Skip to content

Commit

Permalink
Added versionchanged directives
Browse files Browse the repository at this point in the history
  • Loading branch information
palaviv committed Jun 19, 2016
1 parent c29130d commit f8d4cad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
2 changes: 2 additions & 0 deletions doc/en/assert.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit f8d4cad

Please sign in to comment.