]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
disable SQLA 1.4 asyncio mode
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Jan 2021 21:33:31 +0000 (16:33 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Jan 2021 21:33:31 +0000 (16:33 -0500)
The latest merge that uses SQLAlchemy's test suite
more fully is not functioning with the asyncio wrappers.
As we don't need those here right now, disable them.

Change-Id: Iafccb38386ab548614d6dd7a500356a635396289

alembic/testing/__init__.py

index 5f497a6341300766653cb065a8094acb83886947..e560ef6014b9b321a739c744703bf33552d303c3 100644 (file)
@@ -26,3 +26,10 @@ from .assertions import is_true  # noqa
 from .assertions import ne_  # noqa
 from .fixtures import TestBase  # noqa
 from .util import resolve_lambda  # noqa
+
+try:
+    from sqlalchemy.testing import asyncio
+except ImportError:
+    pass
+else:
+    asyncio.ENABLE_ASYNCIO = False