]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Repair async test refactor
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Jan 2021 15:55:21 +0000 (10:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 3 Jan 2021 00:08:25 +0000 (19:08 -0500)
commit5ba427f6daad4e7224267d11f7c6d99bd68f3d0e
treea6c7c112c0eb078521b0281c804578a63aa3810f
parent2581655c545a0cf705e0347e81cd092896d3207c
Repair async test refactor

in I4940d184a4dc790782fcddfb9873af3cca844398 we reworked how async
tests run but apparently the async tests in test/ext/asyncio
are reporting success without being run.   This patch pushes
pytestplugin further so that it won't instrument any test
or function overall that declares itself async. This removes
the need for the __async_wrap__ flag and also allows us to
use a more strict "run_async_test" function that always
runs the asyncio event loop from the top.

Also start working asyncio into main testing suite.

Change-Id: If7144e951a9db67eb7ea73b377f81c4440d39819
lib/sqlalchemy/ext/asyncio/engine.py
lib/sqlalchemy/testing/asyncio.py
lib/sqlalchemy/testing/engines.py
lib/sqlalchemy/testing/fixtures.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/util/_concurrency_py3k.py
lib/sqlalchemy/util/concurrency.py
test/base/test_concurrency_py3k.py
test/ext/asyncio/test_engine_py3k.py
test/ext/asyncio/test_session_py3k.py