Skip to content

Commit 9165824

Browse files
Quek Ching YeeQuek Ching Yee
authored andcommitted
fix: test case with polars new version
1 parent 5a9c9e2 commit 9165824

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/tree/test_export.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
import unittest
23

34
import pandas as pd
45
import polars as pl
@@ -1139,6 +1140,10 @@ def test_tree_to_polars_name_col_missing(tree_node):
11391140
actual = export.tree_to_polars(tree_node, name_col="")
11401141
assert expected.equals(actual)
11411142

1143+
@unittest.skipIf(
1144+
tuple(map(int, pl.__version__.split(".")[:2])) > (1, 9),
1145+
reason="Not compatible with polars>1.9.0",
1146+
)
11421147
@staticmethod
11431148
def test_tree_to_polars_name_path_col_missing(tree_node):
11441149
expected = pl.DataFrame()

0 commit comments

Comments
 (0)