From: Mike Bayer Date: Tue, 4 Nov 2025 21:59:51 +0000 (-0500) Subject: adjust sqlite test further X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3edfb0f70e0d4f46905ac9db4f6067dc7e12402e;p=thirdparty%2Fsqlalchemy%2Falembic.git adjust sqlite test further this test will fail on sqlalchemy prior to 2.0.25 which is not yet released so make the req very specific Change-Id: Ifa758949f773484cf03fec04e37042b42b8a607e --- diff --git a/alembic/util/sqla_compat.py b/alembic/util/sqla_compat.py index 194e1281..cf1954b6 100644 --- a/alembic/util/sqla_compat.py +++ b/alembic/util/sqla_compat.py @@ -70,6 +70,7 @@ _vers = tuple( sqla_14_18 = _vers >= (1, 4, 18) sqla_14_26 = _vers >= (1, 4, 26) sqla_2 = _vers >= (2,) +sqla_2_0_25 = _vers >= (2, 25) sqla_2_1 = _vers >= (2, 1) sqlalchemy_version = __version__ diff --git a/tests/requirements.py b/tests/requirements.py index 081e5f85..a41fc423 100644 --- a/tests/requirements.py +++ b/tests/requirements.py @@ -67,7 +67,7 @@ class DefaultRequirements(SuiteRequirements): # issue here was fixed in SQLAlchemy #12954 for sqlite, 2.0 # release return exclusions.skip_if( - lambda config: not sqla_compat.sqla_2 + lambda config: not sqla_compat.sqla_2_0_25 and exclusions.against(config, "sqlite") )