From: Mike Bayer Date: Tue, 12 Jan 2021 21:33:31 +0000 (-0500) Subject: disable SQLA 1.4 asyncio mode X-Git-Tag: rel_1_5_0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=757664a10ff178222062f6c4ba2482061f292198;p=thirdparty%2Fsqlalchemy%2Falembic.git disable SQLA 1.4 asyncio mode 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 --- diff --git a/alembic/testing/__init__.py b/alembic/testing/__init__.py index 5f497a63..e560ef60 100644 --- a/alembic/testing/__init__.py +++ b/alembic/testing/__init__.py @@ -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