]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Avoid creating asyncio.Lock on the wrong loop.
authorFederico Caselli <cfederico87@gmail.com>
Fri, 30 Apr 2021 20:36:59 +0000 (22:36 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 May 2021 15:58:13 +0000 (11:58 -0400)
commitfc7a3533417d970e47397f4da874e5e73e9f1c72
treefb7b645ed4b7b2f72f2f2c273694c1631d577b0a
parenta47c158a9a3b1104698fc0bff47ca58d67cb9191
Avoid creating asyncio.Lock on the wrong loop.

Fixed a regression introduced by :ticket:`6337` that would create an
``asyncio.Lock`` which could be attached to the wrong loop when
instantiating the async engine before any asyncio loop was started, leading
to an asyncio error message when attempting to use the engine under certain
circumstances.

Fixes: #6409
Change-Id: I8119c56b44a7bd70a650c0ea676892d4d7814a8b
doc/build/changelog/unreleased_14/6409.rst [new file with mode: 0644]
lib/sqlalchemy/util/_concurrency_py3k.py
test/ext/asyncio/test_engine_py3k.py