File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -674,20 +674,20 @@ Test cases
674674 .. method :: setUp()
675675
676676 Method called to prepare the test fixture. This is called immediately
677- before calling the test method; any exception raised by this method will
678- be considered an error rather than a test failure. The default
679- implementation does nothing.
677+ before calling the test method; other than :exc: ` AssertionError ` or :exc: ` SkipTest `,
678+ any exception raised by this method will be considered an error rather than
679+ a test failure. The default implementation does nothing.
680680
681681
682682 .. method :: tearDown()
683683
684684 Method called immediately after the test method has been called and the
685685 result recorded. This is called even if the test method raised an
686686 exception, so the implementation in subclasses may need to be particularly
687- careful about checking internal state. Any exception raised by this
688- method will be considered an error rather than a test failure. This
689- method will only be called if the :meth: `setUp ` succeeds, regardless of
690- the outcome of the test method. The default implementation does nothing.
687+ careful about checking internal state. Any exception, other than :exc: ` AssertionError `
688+ or :exc: ` SkipTest `, raised by this method will be considered an error rather than a
689+ test failure. This method will only be called if the :meth: `setUp ` succeeds,
690+ regardless of the outcome of the test method. The default implementation does nothing.
691691
692692
693693 .. method :: setUpClass()
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ David Abrahams
1818Marc Abramowitz
1919Ron Adam
2020Ali Afshar
21+ Nitika Agarwal
2122Jim Ahlstrom
2223Farhan Ahmad
2324Matthew Ahrens
You can’t perform that action at this time.
0 commit comments