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

Method test_init_close_race

python/python3/tornado/test/ioloop_test.py:418–429  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

416 @skipIfNonUnix
417 @gen_test
418 def test_init_close_race(self):
419 # Regression test for #2367
420 #
421 # Skipped on windows because of what looks like a bug in the
422 # proactor event loop when started and stopped on non-main
423 # threads.
424 def f():
425 for i in range(10):
426 loop = IOLoop(make_current=False)
427 loop.close()
428
429 yield gen.multi([self.io_loop.run_in_executor(None, f) for i in range(2)])
430
431 def test_explicit_asyncio_loop(self):
432 asyncio_loop = asyncio.new_event_loop()

Callers

nothing calls this directly

Calls 1

run_in_executorMethod · 0.45

Tested by

no test coverage detected