unittest.TestSuite.run()
  • References/Python/Python/Development Tools

run(result) Run the tests associated with this suite, collecting the result into the test result object passed as result

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

discover(start_dir, pattern='test*.py', top_level_dir=None) Find all the test modules by recursing into subdirectories from

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

class test.support.WarningsRecorder Class used to record warnings for unit tests. See documentation of check_warnings()

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

class typing.io Wrapper namespace for I/O stream types. This defines the generic type IO[AnyStr]

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

test.support.requires(resource, msg=None) Raise ResourceDenied if resource is not available. msg

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

class test.support.EnvironmentVarGuard Class used to temporarily set or unset environment variables. Instances can be used as

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

assertFalse(expr, msg=None) Test that expr is true (or false). Note that this is equivalent

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

DocTestFailure.got The example’s actual output.

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

exception test.support.TestFailed Exception to be raised when a test fails. This is deprecated in favor of

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

@test.support.anticipate_failure(condition) A decorator to conditionally mark tests with

2025-01-10 15:47:30