From e03d4d039369f1676df8045ed278348bdbc2fb5c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 6 Feb 2024 18:11:32 -0500 Subject: [PATCH] restore uuid_data_type as closed at top level the supports_native_uuid attribute does NOT indicate the UUID datatype being present, only that Uuid(native_uuid=True) would be able to produce something. On SQL Server it produces UNIQUEIDENTIFIER. The current use for this requirement is that of testing the uppercase UUID type that has to match that exactly. Change-Id: I050e5d1889f804ee3763b84828f2bd6a47dd265e (cherry picked from commit f932fc762d40f9b3bb305eb8db8b890483282502) --- lib/sqlalchemy/testing/requirements.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index c5dc52be88..31aac741d4 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -62,10 +62,7 @@ class SuiteRequirements(Requirements): def uuid_data_type(self): """Return databases that support the UUID datatype.""" - return exclusions.skip_if( - lambda config: not config.db.dialect.supports_native_uuid, - "backend does not have a UUID datatype", - ) + return exclusions.closed() @property def foreign_keys(self): -- 2.47.2