ValueError Set of coroutines/Futures is empty. Traceback (most recent call last): File /Users/cals/.local/share/virtualenvs/Owllook-4Lm_G_fn/lib/python3.6/site-packages/sanic/app.py, line 556, in handle_request response = await response File /usr/local/Cellar/python/3.6.5/Frameworks/Pytho...
calls.append(name)yieldyieldable# First, confirm the behavior without moment: each coroutine# monopolizes the event loop until it finishes.immediate = Future()# type: Future[None]immediate.set_result(None)yield[f("a", immediate), f("b", immediate)] self.assertEqual("".join(calls),"aaaaa...
test = self# Dummy Resolver subclass that never finishes.classBadResolver(Resolver):@gen.coroutinedefresolve(self, *args, **kwargs):yieldtest.cleanup_event.wait()# Return something valid so the test doesn't raise during cleanup.return[(socket.AF_INET, ("127.0.0.1", test.get_http_port())...