Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9eda66d

Browse files
committed
Issue #18573: Complete copy-paste from assertRaises entry to assertWarns entry.
1 parent da2cbb4 commit 9eda66d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/unittest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ Test cases
908908
with self.assertWarns(SomeWarning):
909909
do_something()
910910

911-
When used as a context manager, :meth:`assertRaises` accepts the
911+
When used as a context manager, :meth:`assertWarns` accepts the
912912
additional keyword argument *msg*.
913913

914914
The context manager will store the caught warning object in its

0 commit comments

Comments
 (0)