Commit 327433f8 authored by Ezio Melotti's avatar Ezio Melotti

Divide the context manager signature from the normal one for consistency with the other methods.

parent 9c02c2ff
......@@ -989,7 +989,8 @@ Test cases
:meth:`failUnlessRaises`; use :meth:`assertRaises`.
.. method:: assertRaisesRegexp(exception, regexp[, callable, ...])
.. method:: assertRaisesRegexp(exception, regexp, callable, *args, **kwds)
assertRaisesRegexp(exception, regexp)
Like :meth:`assertRaises` but also tests that *regexp* matches
on the string representation of the raised exception. *regexp* may be
......@@ -1041,7 +1042,8 @@ Test cases
.. versionadded:: 3.2
.. method:: assertWarnsRegexp(warning, regexp[, callable, ...])
.. method:: assertWarnsRegexp(warning, regexp, callable, *args, **kwds)
assertWarnsRegexp(warning, regexp)
Like :meth:`assertWarns` but also tests that *regexp* matches on the
message of the triggered warning. *regexp* may be a regular expression
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment