Returns the `.IOLoop` to use for this test. By default, a new `.IOLoop` is created for each test. Subclasses may override this method to return `.IOLoop.current()` if it is not appropriate to use a new `.IOLoop` in each tests (for example, if there are global
(self)
| 289 | self.__rethrow() |
| 290 | |
| 291 | def get_new_ioloop(self) -> IOLoop: |
| 292 | """Returns the `.IOLoop` to use for this test. |
| 293 | |
| 294 | By default, a new `.IOLoop` is created for each test. |
| 295 | Subclasses may override this method to return |
| 296 | `.IOLoop.current()` if it is not appropriate to use a new |
| 297 | `.IOLoop` in each tests (for example, if there are global |
| 298 | singletons using the default `.IOLoop`) or if a per-test event |
| 299 | loop is being provided by another system (such as |
| 300 | ``pytest-asyncio``). |
| 301 | """ |
| 302 | return IOLoop(make_current=False) |
| 303 | |
| 304 | def _handle_exception( |
| 305 | self, typ: Type[Exception], value: Exception, tb: TracebackType |