doctest.script_from_examples()
  • References/Python/Python/Development Tools

doctest.script_from_examples(s) Convert text with examples to a script. Argument s

2025-01-10 15:47:30
doctest.DocTestRunner
  • References/Python/Python/Development Tools

class doctest.DocTestRunner(checker=None, verbose=None, optionflags=0) A processing class used to execute and verify the interactive

2025-01-10 15:47:30
doctest.UnexpectedException
  • References/Python/Python/Development Tools

exception doctest.UnexpectedException(test, example, exc_info) An exception raised by DocTestRunner to signal that

2025-01-10 15:47:30
unittest.TextTestRunner.
  • References/Python/Python/Development Tools

_makeResult() This method returns the instance of TestResult used by run(). It is not intended to

2025-01-10 15:47:30
unittest.TestCase.defaultTestResult()
  • References/Python/Python/Development Tools

defaultTestResult() Return an instance of the test result class that should be used for this test case class (if no other result

2025-01-10 15:47:30
typing.NamedTuple()
  • References/Python/Python/Development Tools

typing.NamedTuple(typename, fields) Typed version of namedtuple. Usage:

2025-01-10 15:47:30
unittest.TestLoader.loadTestsFromNames()
  • References/Python/Python/Development Tools

loadTestsFromNames(names, module=None) Similar to loadTestsFromName(), but takes a sequence of names rather than

2025-01-10 15:47:30
typing.AbstractSet
  • References/Python/Python/Development Tools

class typing.AbstractSet(Sized, Iterable[T_co], Container[T_co]) A generic version of

2025-01-10 15:47:30
doctest.OutputChecker.check_output()
  • References/Python/Python/Development Tools

check_output(want, got, optionflags) Return True iff the actual output from an example (got) matches the

2025-01-10 15:47:30
test.support.captured_stderr()
  • References/Python/Python/Development Tools

test.support.captured_stderr() A context managers that temporarily replaces the named stream with

2025-01-10 15:47:30