Register the TestCaseFunction class as an IReporter if twisted.trial is available.
()
| 530 | |
| 531 | |
| 532 | def 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 | |
| 541 | class TwistedVersion(Enum): |
nothing calls this directly
no test coverage detected