Skip to content

Commit

Permalink
Revert "Drop windows skips"
Browse files Browse the repository at this point in the history
This reverts commit 3348793.
  • Loading branch information
adityagoel4512 committed Jan 16, 2025
1 parent 3348793 commit ec9c0b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_additional.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

import sys

import numpy as np
import pytest
Expand Down Expand Up @@ -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})
Expand All @@ -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",
[
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit ec9c0b1

Please sign in to comment.