Issue #18573: Complete copy-paste from assertRaises entry to assertWarns entry.
This commit is contained in:
parent
da2cbb4fc8
commit
9eda66da78
|
@ -908,7 +908,7 @@ Test cases
|
|||
with self.assertWarns(SomeWarning):
|
||||
do_something()
|
||||
|
||||
When used as a context manager, :meth:`assertRaises` accepts the
|
||||
When used as a context manager, :meth:`assertWarns` accepts the
|
||||
additional keyword argument *msg*.
|
||||
|
||||
The context manager will store the caught warning object in its
|
||||
|
|
Loading…
Reference in New Issue