EnvironmentVarGuard.set(envvar, value) Temporarily set the environment variable envvar to the value of value
shouldStop Set to True when the execution of tests should stop by stop().
exception doctest.DocTestFailure(test, example, got) An exception raised by DocTestRunner to signal that a doctest
tearDown() Method called immediately after the test method has been called and the result recorded. This is called even if the
addTests(tests) Add all the tests from an iterable of TestCase and TestSuite instances to this test
test.support.make_bad_fd() Create an invalid file descriptor by opening and closing a temporary file, and returning its descriptor
class doctest.Example(source, want, exc_msg=None, lineno=0, indent=0, options=None) A single interactive example, consisting
doctest.DocFileSuite(*paths, module_relative=True, package=None, setUp=None, tearDown=None, globs=None, optionflags=0, parser=DocTestParser(), encoding=None)
test.support.find_unused_port(family=socket.AF_INET, socktype=socket.SOCK_STREAM) Returns an unused port that should be suitable
report_start(out, test, example) Report that the test runner is about to process the given example. This method is provided
Page 15 of 28