Skip to content

Commit f8d4cad

Browse files
committed
Added versionchanged directives
1 parent c29130d commit f8d4cad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

_pytest/python.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,8 @@ def raises(expected_exception, *args, **kwargs):
13371337
>>> with raises(ZeroDivisionError):
13381338
... 1/0
13391339
1340+
.. versionchanged:: 2.10
1341+
13401342
In the context manager form you may use the keyword argument
13411343
``message`` to specify a custom failure message::
13421344

doc/en/assert.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ and if you need to have access to the actual exception info you may use::
8585
the actual exception raised. The main attributes of interest are
8686
``.type``, ``.value`` and ``.traceback``.
8787

88+
.. versionchanged:: 2.10
89+
8890
In the context manager form you may use the keyword argument
8991
``message`` to specify a custom failure message::
9092

0 commit comments

Comments
 (0)