Skip to content

Commit 3a22960

Browse files
committed
only run polars/vaex tests on 3.11 or earlier
1 parent f51c371 commit 3a22960

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import unittest.mock as mock
88
from plotly.express._core import build_dataframe
99
from pandas.testing import assert_frame_equal
10+
import sys
1011

1112

1213
# Fixtures
@@ -318,7 +319,8 @@ def __dataframe__(self):
318319

319320

320321
@pytest.mark.skipif(
321-
version.parse(pd.__version__) < version.parse("2.0.2"),
322+
version.parse(pd.__version__) < version.parse("2.0.2")
323+
or sys.version_info >= (3, 12),
322324
reason="plotly doesn't use a dataframe interchange protocol for pandas < 2.0.2",
323325
)
324326
@pytest.mark.parametrize("test_lib", ["vaex", "polars"])
@@ -339,7 +341,8 @@ def test_build_df_from_vaex_and_polars(test_lib):
339341

340342

341343
@pytest.mark.skipif(
342-
version.parse(pd.__version__) < version.parse("2.0.2"),
344+
version.parse(pd.__version__) < version.parse("2.0.2")
345+
or sys.version_info >= (3, 12),
343346
reason="plotly doesn't use a dataframe interchange protocol for pandas < 2.0.2",
344347
)
345348
@pytest.mark.parametrize("test_lib", ["vaex", "polars"])

0 commit comments

Comments
 (0)