test.support.import_module()
  • References/Python/Python/Development Tools

test.support.import_module(name, deprecated=False) This function imports and returns the named module. Unlike a normal import

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

filename The name of the file that this DocTest was extracted from; or None if the filename is unknown

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

get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into

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

test.support.run_doctest(module, verbosity=None) Run

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

output A list of str

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

assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the

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

buffer If set to true, sys.stdout and sys.stderr will be buffered in between startTest()

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

class typing.Union Union type; Union[X, Y] means either X or Y. To define a union

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

maxDiff This attribute controls the maximum length of diffs output by assert methods that report diffs on failure. It defaults

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

tb_locals If set to true then local variables will be shown in tracebacks.

2025-01-10 15:47:30