Skip to content

Commit

Permalink
fix: skip staticmethod for python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Quek Ching Yee authored and Quek Ching Yee committed Nov 2, 2024
1 parent 9165824 commit 0961df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tree/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,11 +1140,11 @@ def test_tree_to_polars_name_col_missing(tree_node):
actual = export.tree_to_polars(tree_node, name_col="")
assert expected.equals(actual)

@staticmethod
@unittest.skipIf(
tuple(map(int, pl.__version__.split(".")[:2])) > (1, 9),
reason="Not compatible with polars>1.9.0",
)
@staticmethod
def test_tree_to_polars_name_path_col_missing(tree_node):
expected = pl.DataFrame()
expected.index = range(8)
Expand Down

0 comments on commit 0961df6

Please sign in to comment.