@@ -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
@@ -1967,7 +1968,7 @@ Loading and running tests
1967
1968
1968
1969
A list containing 2-tuples of :class: `TestCase ` instances and strings
1969
1970
holding formatted tracebacks. Each tuple represents an expected failure
1970
- of the test case.
1971
+ or error of the test case.
1971
1972
1972
1973
.. attribute :: unexpectedSuccesses
1973
1974
@@ -2093,8 +2094,8 @@ Loading and running tests
2093
2094
2094
2095
.. method :: addExpectedFailure(test, err)
2095
2096
2096
- Called when the test case *test * fails, but was marked with the
2097
- :func: `expectedFailure ` decorator.
2097
+ Called when the test case *test * fails or errors , but was marked with
2098
+ the :func: `expectedFailure ` decorator.
2098
2099
2099
2100
The default implementation appends a tuple ``(test, formatted_err) `` to
2100
2101
the instance's :attr: `expectedFailures ` attribute, where *formatted_err *
0 commit comments