From: Mike Bayer Date: Tue, 6 Feb 2024 23:11:32 +0000 (-0500) Subject: restore uuid_data_type as closed at top level X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f932fc762d40f9b3bb305eb8db8b890483282502;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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 --- diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index 4c6c50b296..ee175524fb 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):