From 12ad9204a241c2c48477f717d184b1c8dec8270b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 24 Oct 2019 22:29:28 -0400 Subject: Disallow memory tests from running on Windows These tests fail with multiprocess errors involving pickling of the profile file. The memory tests are not critical for windows development nor are the profiling tests overall as they are against platform independent measurements. Fixes: #4946 Change-Id: Iaeb3958e59ce7709ba6af3cf9d7baf2a4922bb9b --- lib/sqlalchemy/testing/requirements.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib') diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index 62e442b6b..c45156d6b 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -15,6 +15,7 @@ to provide specific inclusion/exclusions. """ +import platform import sys from . import exclusions @@ -951,6 +952,16 @@ class SuiteRequirements(Requirements): lambda config: config.options.low_connections ) + @property + def no_windows(self): + return exclusions.skip_if(self._running_on_windows()) + + def _running_on_windows(self): + return exclusions.LambdaPredicate( + lambda: platform.system() == "Windows", + description="running on Windows", + ) + @property def timing_intensive(self): return exclusions.requires_tag("timing_intensive") -- cgit v1.2.1