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

doctest.register_optionflag(name) Create a new option flag with a given name, and return the new flag’s integer value.

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

sortTestMethodsUsing Function to be used to compare method names when sorting them in getTestCaseNames() and all

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

assertRaisesRegex(exception, regex, callable, *args, **kwds) assertRaisesRegex(exception, regex, msg=None) Like

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

class doctest.DebugRunner(checker=None, verbose=None, optionflags=0) A subclass of DocTestRunner that raises an

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

unittest.installHandler() Install the control-c handler. When a signal.SIGINT is received (usually in response

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

find(obj[, name][, module][, globs][, extraglobs]) Return a list of the DocTests that are defined by obj‘s

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

class typing.Optional Optional type. Optional[X] is equivalent to Union[X

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

class typing.MutableSequence(Sequence[T]) A generic version of

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

class typing.Iterator(Iterable[T_co]) A generic version of the

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

addFailure(test, err) Called when the test case test signals a failure. err is a tuple of the form returned

2025-01-10 15:47:30