MCPcopy
hub / github.com/pytest-dev/pytest / pytest_configure

Function pytest_configure

src/_pytest/unittest.py:532–538  ·  view source on GitHub ↗

Register the TestCaseFunction class as an IReporter if twisted.trial is available.

()

Source from the content-addressed store, hash-verified

530
531
532def pytest_configure() -> None:
533 """Register the TestCaseFunction class as an IReporter if twisted.trial is available."""
534 if _get_twisted_version() is not TwistedVersion.NotInstalled:
535 from twisted.trial.itrial import IReporter
536 from zope.interface import classImplements
537
538 classImplements(TestCaseFunction, IReporter)
539
540
541class TwistedVersion(Enum):

Callers

nothing calls this directly

Calls 1

_get_twisted_versionFunction · 0.85

Tested by

no test coverage detected