From fdd26676a722aace6fe86c1e4bd2530605f5f606 Mon Sep 17 00:00:00 2001 From: Agis Kounelis Date: Tue, 23 Apr 2024 16:55:32 +0300 Subject: [PATCH] Fix test skipping --- tiledb/tests/test_timestamp_overrides.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tiledb/tests/test_timestamp_overrides.py b/tiledb/tests/test_timestamp_overrides.py index c964a2157a..3231998613 100644 --- a/tiledb/tests/test_timestamp_overrides.py +++ b/tiledb/tests/test_timestamp_overrides.py @@ -19,15 +19,11 @@ def has_libfaketime(): return False +@pytest.mark.skipif( + sys.platform == "win32" or not has_libfaketime(), + reason="libfaketime not installed. Not supported on Windows.", +) class TestTimestampOverrides(DiskTestCase): - @pytest.mark.skipif( - sys.platform == "win32", - reason="libfaketime is not supported on Windows", - ) - @pytest.mark.skipif( - not has_libfaketime(), - reason="libfaketime not installed.", - ) def test_timestamp_overrides(self): uri_fragments = self.path("time_test_fragments") uri_group_metadata = self.path("time_test_group_metadata")