Skip to content

Commit 3edfb0f

Browse files
committed
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
1 parent 80c95fe commit 3edfb0f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

alembic/util/sqla_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def _safe_int(value: str) -> Union[int, str]:
7070
sqla_14_18 = _vers >= (1, 4, 18)
7171
sqla_14_26 = _vers >= (1, 4, 26)
7272
sqla_2 = _vers >= (2,)
73+
sqla_2_0_25 = _vers >= (2, 25)
7374
sqla_2_1 = _vers >= (2, 1)
7475
sqlalchemy_version = __version__
7576

tests/requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def foreign_key_name_reflection(self):
6767
# issue here was fixed in SQLAlchemy #12954 for sqlite, 2.0
6868
# release
6969
return exclusions.skip_if(
70-
lambda config: not sqla_compat.sqla_2
70+
lambda config: not sqla_compat.sqla_2_0_25
7171
and exclusions.against(config, "sqlite")
7272
)
7373

0 commit comments

Comments
 (0)