class typing.Iterator(Iterable[T_co]) A generic version of the
@test.support.anticipate_failure(condition) A decorator to conditionally mark tests with
class typing.Container(Generic[T_co]) A generic version of
output_difference(example, got, optionflags) Return a string describing the differences between the expected output for a given
options A dictionary mapping from option flags to True or False, which is used to override default
test.support.captured_stdin() test.support.captured_stdout() test.support.captured_stderr()
tearDownClass() A class method called after tests in an individual class have run. tearDownClass is called with
addExpectedFailure(test, err) Called when the test case test fails, but was marked with the expectedFailure()
DocTestFailure.example The Example that failed.
addUnexpectedSuccess(test) Called when the test case test was marked with the expectedFailure() decorator
Page 7 of 28