mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Divide the context manager signature from the normal one for consistency with the other methods.
This commit is contained in:
parent
9c02c2ffa2
commit
327433f864
1 changed files with 4 additions and 2 deletions
|
@ -989,7 +989,8 @@ Test cases
|
||||||
:meth:`failUnlessRaises`; use :meth:`assertRaises`.
|
: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
|
Like :meth:`assertRaises` but also tests that *regexp* matches
|
||||||
on the string representation of the raised exception. *regexp* may be
|
on the string representation of the raised exception. *regexp* may be
|
||||||
|
@ -1041,7 +1042,8 @@ Test cases
|
||||||
.. versionadded:: 3.2
|
.. 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
|
Like :meth:`assertWarns` but also tests that *regexp* matches on the
|
||||||
message of the triggered warning. *regexp* may be a regular expression
|
message of the triggered warning. *regexp* may be a regular expression
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue