From: Ezio Melotti Date: Wed, 3 Nov 2010 20:51:17 +0000 (+0000) Subject: Divide the context manager signature from the normal one for consistency with the... X-Git-Tag: v3.2a4~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=327433f864ee0a010997b77fc455d75aba79bd1f;p=python Divide the context manager signature from the normal one for consistency with the other methods. --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 49260e0853..9839efbbf1 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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