| 320 | raise_exc_info(failure) |
| 321 | |
| 322 | def run( |
| 323 | self, result: Optional[unittest.TestResult] = None |
| 324 | ) -> Optional[unittest.TestResult]: |
| 325 | ret = super().run(result) |
| 326 | # As a last resort, if an exception escaped super.run() and wasn't |
| 327 | # re-raised in tearDown, raise it here. This will cause the |
| 328 | # unittest run to fail messily, but that's better than silently |
| 329 | # ignoring an error. |
| 330 | self.__rethrow() |
| 331 | return ret |
| 332 | |
| 333 | def stop(self, _arg: Any = None, **kwargs: Any) -> None: |
| 334 | """Stops the `.IOLoop`, causing one pending (or future) call to `wait()` |