exception doctest.DocTestFailure(test, example, got) An exception raised by DocTestRunner to signal that a doctest
test.support.is_jython True if the running interpreter is Jython.
doctest.script_from_examples(s) Convert text with examples to a script. Argument s
class typing.Callable Callable type; Callable[[int], str] is a function of (int) -> str. The
wasSuccessful() Return True if all tests run so far have passed, otherwise returns False.
failureException This class attribute gives the exception raised by the test method. If a test framework needs to use a specialized
defaultTestResult() Return an instance of the test result class that should be used for this test case class (if no other result
typing.NamedTuple(typename, fields) Typed version of namedtuple. Usage:
id() Return a string identifying the specific test case. This is usually the full name of the test method, including the module
test.support.captured_stderr() A context managers that temporarily replaces the named stream with
Page 17 of 28