Internal Testing Modules
test.support.socket_helper
Provides network-related test fixtures for CPython, including loopback host constants, port binding helpers and capability flags. Importing the module can perform a local IPv6 capability probe. The example reads constants only; it does not explicitly open a connection or expose a server. 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.support.socket_helperReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from test.support import socket_helperprint(isinstance(socket_helper.IPV6_ENABLED, bool))