From: Mike Bayer Date: Mon, 29 Sep 2025 17:48:02 +0000 (-0400) Subject: skip windows/macosx for GC sensitive tests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f6dd98ae4416ac0867227384b124752005e28c4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git skip windows/macosx for GC sensitive tests can't get these to pass on GH actions anymore, something has changed. Change-Id: Iecd78b7f959def69b0a016f8341fef035a0d6d39 --- diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index 7ed922efca..09c93e5c64 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -1526,6 +1526,16 @@ class SuiteRequirements(Requirements): description="running on Windows", ) + @property + def only_linux(self): + return exclusions.only_if(self._running_on_linux()) + + def _running_on_linux(self): + return exclusions.LambdaPredicate( + lambda: platform.system() == "Linux", + description="running on Linux", + ) + @property def timing_intensive(self): from . import config @@ -1658,7 +1668,7 @@ class SuiteRequirements(Requirements): gc.collect() is called, as well as clean out unreferenced subclasses. """ - return self.cpython + return self.cpython + self.only_linux @property def no_coverage(self): diff --git a/test/requirements.py b/test/requirements.py index 931077d672..d69bacaca5 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -408,7 +408,7 @@ class DefaultRequirements(SuiteRequirements): gc.collect() is called, as well as clean out unreferenced subclasses. """ - return self.cpython + skip_if("+aiosqlite") + return self.cpython + self.only_linux + skip_if("+aiosqlite") @property def memory_process_intensive(self):