From ec9c0b1ccf85eab2c62bf428f1c90168c6075041 Mon Sep 17 00:00:00 2001 From: Aditya Goel Date: Thu, 16 Jan 2025 15:27:08 +0000 Subject: [PATCH] Revert "Drop windows skips" This reverts commit 33487933ea588aa01a0a7be8e8c92af4fe8a999b. --- tests/test_additional.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_additional.py b/tests/test_additional.py index e100c21..869eabe 100644 --- a/tests/test_additional.py +++ b/tests/test_additional.py @@ -1,6 +1,7 @@ # Copyright (c) QuantCo 2023-2024 # SPDX-License-Identifier: BSD-3-Clause +import sys import numpy as np import pytest @@ -65,6 +66,10 @@ def test_searchsorted_raises(): ndx.searchsorted(a, b, side="middle") # type: ignore[arg-type] +@pytest.mark.skipif( + sys.platform.startswith("win") and np.__version__ < "2", + reason="ORT 1.18 not registering LabelEncoder(4) only on Windows.", +) def test_static_map_lazy(): a = ndx.array(shape=(3,), dtype=ndx.int64) b = nda.static_map(a, {1: 2, 2: 3}) @@ -82,6 +87,10 @@ def test_static_map_lazy(): ) +@pytest.mark.skipif( + sys.platform.startswith("win") and np.__version__ < "2", + reason="ORT 1.18 not registering LabelEncoder(4) only on Windows.", +) @pytest.mark.parametrize( "x, mapping, default, expected", [ @@ -145,6 +154,10 @@ def test_static_map_unimplemented_for_nullable(): nda.static_map(a, {1: 2, 2: 3}) +@pytest.mark.skipif( + sys.platform.startswith("win"), + reason="ORT 1.18 not registering LabelEncoder(4) only on Windows.", +) def test_isin(): a = ndx.array(shape=("N",), dtype=ndx.utf8) b = nda.isin(a, ["foo", "bar", "baz"])