Skip to content

Commit e4b70f0

Browse files
committed
test: Skip tests for Python 3.7
1 parent 101c743 commit e4b70f0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/tree/test_construct.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import unittest
23

34
import pandas as pd
@@ -1318,6 +1319,7 @@ def test_add_dataframe_to_tree_by_name_inconsistent_attributes(self):
13181319
)
13191320

13201321

1322+
@unittest.skipIf(sys.version_info <= (3, 7), "polars not supported")
13211323
class TestAddPolarsToTreeByPath(unittest.TestCase):
13221324
def setUp(self):
13231325
"""
@@ -1751,6 +1753,7 @@ def test_add_polars_to_tree_by_path_different_root_error(self):
17511753
)
17521754

17531755

1756+
@unittest.skipIf(sys.version_info <= (3, 7), "polars not supported")
17541757
class TestAddPolarsToTreeByName(unittest.TestCase):
17551758
def setUp(self):
17561759
"""
@@ -3665,6 +3668,7 @@ def test_dataframe_to_tree_by_relation_no_root_error():
36653668
) == Constants.ERROR_NODE_DATAFRAME_MULTIPLE_ROOT.format(root_nodes=[])
36663669

36673670

3671+
@unittest.skipIf(sys.version_info <= (3, 7), "polars not supported")
36683672
class TestPolarsToTree(unittest.TestCase):
36693673
def setUp(self):
36703674
"""
@@ -4105,6 +4109,7 @@ def test_polars_to_tree_different_root_error():
41054109
)
41064110

41074111

4112+
@unittest.skipIf(sys.version_info <= (3, 7), "polars not supported")
41084113
class TestPolarsToTreeByRelation(unittest.TestCase):
41094114
def setUp(self):
41104115
self.relation_data = pl.DataFrame(

tests/tree/test_export.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import sys
2+
import unittest
3+
14
import pandas as pd
25
import polars as pl
36
import pytest
@@ -866,6 +869,7 @@ def test_tree_to_dataframe_to_tree(tree_node):
866869
assert_tree_structure_node_root(tree)
867870

868871

872+
@unittest.skipIf(sys.version_info <= (3, 7), "polars not supported")
869873
class TestTreeToPolars:
870874
@staticmethod
871875
def test_tree_to_polars(tree_node):

0 commit comments

Comments
 (0)