Internal Testing Modules

test.regrtest

Entry interface for CPython regression-test orchestration. It coordinates interpreter tests and their selection, reporting and execution settings. It is not a general application test runner. The example checks the entry point without invoking 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.regrtest

Return Value

module

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

Working Example

Example Snippetpython
from test import regrtestprint(callable(regrtest.main))
Python Reference