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

Skip to content

Commit 92e2a22

Browse files
committed
Merge with 3.3
2 parents 4efdb41 + 778cba7 commit 92e2a22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/unittest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,12 @@ Test cases
974974
Test that a warning is triggered when *callable* is called with any
975975
positional or keyword arguments that are also passed to
976976
:meth:`assertWarns`. The test passes if *warning* is triggered and
977-
fails if it isn't. Also, any unexpected exception is an error.
977+
fails if it isn't. Any exception is an error.
978978
To catch any of a group of warnings, a tuple containing the warning
979979
classes may be passed as *warnings*.
980980

981981
If only the *warning* and possibly the *msg* arguments are given,
982-
returns a context manager so that the code under test can be written
982+
return a context manager so that the code under test can be written
983983
inline rather than as a function::
984984

985985
with self.assertWarns(SomeWarning):
@@ -992,7 +992,7 @@ Test cases
992992
:attr:`warning` attribute, and the source line which triggered the
993993
warnings in the :attr:`filename` and :attr:`lineno` attributes.
994994
This can be useful if the intention is to perform additional checks
995-
on the exception raised::
995+
on the warning caught::
996996

997997
with self.assertWarns(SomeWarning) as cm:
998998
do_something()

0 commit comments

Comments
 (0)