@@ -593,8 +593,9 @@ The following decorators and exception implement test skipping and expected fail
593
593
594
594
.. decorator :: expectedFailure
595
595
596
- Mark the test as an expected failure. If the test fails it will be
597
- considered a success. If the test passes, it will be considered a failure.
596
+ Mark the test as an expected failure or error. If the test fails or errors
597
+ it will be considered a success. If the test passes, it will be considered
598
+ a failure.
598
599
599
600
.. exception :: SkipTest(reason)
600
601
@@ -1946,7 +1947,7 @@ Loading and running tests
1946
1947
1947
1948
A list containing 2-tuples of :class: `TestCase ` instances and strings
1948
1949
holding formatted tracebacks. Each tuple represents an expected failure
1949
- of the test case.
1950
+ or error of the test case.
1950
1951
1951
1952
.. attribute :: unexpectedSuccesses
1952
1953
@@ -2072,8 +2073,8 @@ Loading and running tests
2072
2073
2073
2074
.. method :: addExpectedFailure(test, err)
2074
2075
2075
- Called when the test case *test * fails, but was marked with the
2076
- :func: `expectedFailure ` decorator.
2076
+ Called when the test case *test * fails or errors , but was marked with
2077
+ the :func: `expectedFailure ` decorator.
2077
2078
2078
2079
The default implementation appends a tuple ``(test, formatted_err) `` to
2079
2080
the instance's :attr: `expectedFailures ` attribute, where *formatted_err *
0 commit comments