def METHOD_NAME(self):
    finished = False
    async def coro():
        await asyncio.sleep(0)
    def func():
        nonlocal finished
        loop = asyncio.new_event_loop()
        loop.run_until_complete(coro())
        # close() must not call signal.set_wakeup_fd()
        loop.close()
        finished = True
    thread = threading.Thread(target=func)
    thread.start()
    thread.join()
    self.assertTrue(finished)