]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
1.4: Fix running tests with Python 3.14
authorNils Philippsen <nils@tiptoe.de>
Thu, 12 Jun 2025 13:32:48 +0000 (09:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Jun 2025 14:59:33 +0000 (10:59 -0400)
commit3bdfd0d3e493e704a7aca569a48fc743d934d169
treed314a2332ecdbcd63a7557ec95036dba010053a9
parent0f2f87a3e9669eb90c825c86e6f36c7bc870d2c2
1.4: Fix running tests with Python 3.14

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_event_loop()``.  This allows
the SQLAlchemy 1.4 codebase to run on Python 3.14 which has removed this
method.  Pull request courtesy Nils Philippsen.

Cleaned up some old cruft in tox.ini and added py314 markers.

backported adef933f8d12938 from 2.0 to update test_memusage to use
the "fork" context

Fixes: #12668
Closes: #12666
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12666
Pull-request-sha: 6f0f4d6cca4cfcb60bd4ed09323eae5e5bd04958

Change-Id: I1f9682f945836e1e347cf1693eb30ff43ebe6e30
12 files changed:
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/testing/requirements.py
lib/sqlalchemy/util/__init__.py
lib/sqlalchemy/util/_concurrency_py3k.py
lib/sqlalchemy/util/compat.py
lib/sqlalchemy/util/concurrency.py
setup.cfg
test/aaa_profiling/test_memusage.py
test/base/test_concurrency_py3k.py
tox.ini