diff options
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
-rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index e2c61a05e..45a2fdf31 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 @@ -1092,22 +1093,11 @@ class SuiteRequirements(Requirements): def _running_on_windows(self): return exclusions.LambdaPredicate( - lambda: util.win32, + lambda: platform.system() == "Windows", description="running on Windows", ) @property - def millisecond_monotonic_time(self): - """the util.monotonic_time() function must be millisecond accurate. - - Under Python 2 we can't guarantee this on Windows. - - """ - return exclusions.skip_if( - lambda: util.win32 and sys.version_info < (3,) - ) - - @property def timing_intensive(self): return exclusions.requires_tag("timing_intensive") |