Make組ブログ

Python、Webアプリや製品・サービス開発についてhirokikyが書きます。

2019-01-05から1日間の記事一覧

pytest-asyncioとpytest-aiohttpを一緒に使うとRuntimeError got Future attached to a different loopがでる

pytest-asyncio と pytest-aiohttp を同時に使うと、テストの中で使うイベントループが別のものになってしまってエラーが出ます。 RuntimeError: Task <Task pending coro=<...> cb=[...]> got Future <Future pending> attached to a different loop github.com github.com aiohttpを使ってるWebアプ</future></task>…