Internal Testing Modules

test

Optional package containing CPython regression tests and their supporting utilities. It is intended for interpreter development. Importing the package is distinct from running its regression suite; distributors may omit it. This is CPython test infrastructure, not a supported application dependency; prefer public unittest or standard-library equivalents in application tests.

Formal Syntax & Structure

python syntaxpython
import test

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
import testprint(test.__name__)
Python Reference