File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments