Skip to content

Commit

Permalink
test: add note about broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 5, 2023
1 parent 0a746d3 commit 43cb458
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

import pytest

pytest.importorskip("pyarrow")
pyarrow = pytest.importorskip("pyarrow")

import awkward as ak
import awkward.operations.str as akstr
from packaging.version import Version

import dask_awkward as dak
from dask_awkward.lib.testutils import assert_eq

PYARROW_GT_13 = Version(pyarrow.__version__) >= Version("13.0")


lines1 = [
"this is line one",
"123",
Expand Down Expand Up @@ -254,12 +258,13 @@ def test_rtrim_whitespace() -> None:
assert_eq(akstr.rtrim_whitespace(daa), akstr.rtrim_whitespace(caa))


@pytest.mark.skipif(not PYARROW_GT_13, reason="ak.str.slice is broken for pyarrow<13")
@pytest.mark.parametrize(
"args",
[
(2, 10, 2),
(3, None, 1),
(0, None, 3),
(3, None, 1),
],
)
def test_slice(args: tuple) -> None:
Expand Down

0 comments on commit 43cb458

Please sign in to comment.