]> 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)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Mar 2024 17:45:18 +0000 (13:45 -0400)
commit4bc12e6abda97386b2eb66aff21312d010e57e1d
treedc5ef6fd6251ff7618edbff25bd846f4b6de63db
parent39f4b9a75497eae3589501a3790f9fb7866dc557
use asyncio.Runner for tests

Backported to SQLAlchemy 2.0 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: #11187
Change-Id: I867b2478b9ba3a152fbfef380650eb987527ba46
doc/build/changelog/unreleased_20/11187.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