Python test Module
Example
Access Python's test support utilities:
from test import support
verbose = support.verbose
print(f'Test verbose mode: {verbose}')
print(f'Support module loaded: {support.__name__}')
Try it Yourself »
Definition and Usage
The test module is a package containing the Python standard library's regression tests.
Use it to run Python's test suite or reference test implementations when writing your own tests.
Members
Member | Description |
---|---|
support | Submodule with utilities for Python's test suite. |