]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use asyncio.Runner for tests
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Mar 2024 17:02:46 +0000 (13:02 -0400)
committerNils Philippsen <nils@tiptoe.de>
Thu, 12 Jun 2025 11:31:58 +0000 (13:31 +0200)
commitcbfef4cc3781fcad67a0a24144506fa966117a1f
treece8a9b37b86daea5d580eb28969389cff1f0b3b6
parent0f2f87a3e9669eb90c825c86e6f36c7bc870d2c2
use asyncio.Runner for tests

Backported to SQLAlchemy 1.4 an improvement to the test suite with regards
to how asyncio related tests are run, now using the newer Python 3.11
``asyncio.Runner`` or a backported equivalent, rather than relying on the
previous implementation based on ``asyncio.get_running_loop()``.  This
should hopefully prevent issues with large suite runs on CPU loaded
hardware where the event loop seems to become corrupted, leading to
cascading failures.

Fixes: #12668
(cherry picked from commit 4bc12e6abda97386b2eb66aff21312d010e57e1d)
doc/build/changelog/unreleased_14/12668.rst [new file with mode: 0644]
lib/sqlalchemy/testing/asyncio.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/util/_concurrency_py3k.py
lib/sqlalchemy/util/concurrency.py