MCPcopy Create free account
hub / github.com/EasyIME/PIME / get_new_ioloop

Method get_new_ioloop

python/python3/tornado/testing.py:291–302  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

get_loopMethod · 0.95

Calls 1

IOLoopClass · 0.90

Tested by

no test coverage detected