(
self,
testcase: unittest.TestCase,
reason: twisted.trial.unittest.Todo | None = None,
)
| 356 | self._addexcinfo(sys.exc_info()) |
| 357 | |
| 358 | def addUnexpectedSuccess( |
| 359 | self, |
| 360 | testcase: unittest.TestCase, |
| 361 | reason: twisted.trial.unittest.Todo | None = None, |
| 362 | ) -> None: |
| 363 | msg = "Unexpected success" |
| 364 | if reason: |
| 365 | msg += f": {reason.reason}" |
| 366 | # Preserve unittest behaviour - fail the test. Explicitly not an XPASS. |
| 367 | try: |
| 368 | fail(msg, pytrace=False) |
| 369 | except fail.Exception: |
| 370 | self._addexcinfo(sys.exc_info()) |
| 371 | |
| 372 | def addSuccess(self, testcase: unittest.TestCase) -> None: |
| 373 | pass |
nothing calls this directly
no test coverage detected