]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(pool): make sure to throw a RuntimeError opening async pool without a loop
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 3 Nov 2022 17:15:07 +0000 (18:15 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 4 Nov 2022 16:31:55 +0000 (17:31 +0100)
commit233cb4eef2a199c392d564e3df3ca7747735588a
tree22d0d5fbaa7c3b22dea5f7cde9e36b4f8500fd64
parent11e0401dea4f167ba764a5a4f230435d22053971
fix(pool): make sure to throw a RuntimeError opening async pool without a loop

The error would be thrown anyway downstream, when tasks are created, but
other spurious warning might be raised too because certain tasks are not
awaited.
psycopg_pool/psycopg_pool/pool_async.py
tests/pool/test_pool_async_noasyncio.py