]> granicus.if.org Git - python/commitdiff
Divide the context manager signature from the normal one for consistency with the...
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 3 Nov 2010 20:51:17 +0000 (20:51 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 3 Nov 2010 20:51:17 +0000 (20:51 +0000)
Doc/library/unittest.rst

index 49260e085394ff1961f61c0899eea416a65eedf9..9839efbbf123c77cefe3a67f184e520a89498111 100644 (file)
@@ -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