diff --git a/tests/playwright/shiny/components/data_frame/data_type/app.py b/tests/playwright/shiny/components/data_frame/data_type/app.py index 50c76b952..e18ede0b0 100644 --- a/tests/playwright/shiny/components/data_frame/data_type/app.py +++ b/tests/playwright/shiny/components/data_frame/data_type/app.py @@ -1,6 +1,13 @@ from __future__ import annotations -import modin.pandas as mpd # pyright: ignore[reportMissingTypeStubs] +import sys + +# Remove this conditional once modin is supported on Python 3.13 +if sys.version_info < (3, 13): + import modin.pandas as mpd # pyright: ignore[reportMissingTypeStubs] +else: + raise RuntimeError("This test is not supported on Python 3.13") + import narwhals.stable.v1 as nw import palmerpenguins # pyright: ignore[reportMissingTypeStubs] import polars as pl diff --git a/tests/playwright/shiny/components/data_frame/data_type/test_df_data_type.py b/tests/playwright/shiny/components/data_frame/data_type/test_df_data_type.py index d3c24e130..ff131eac9 100644 --- a/tests/playwright/shiny/components/data_frame/data_type/test_df_data_type.py +++ b/tests/playwright/shiny/components/data_frame/data_type/test_df_data_type.py @@ -1,5 +1,7 @@ import re +import sys +import pytest from playwright.sync_api import Page from shiny.playwright import controller @@ -39,6 +41,10 @@ ] +@pytest.mark.skipif( + sys.version_info[:2] == (3, 13), + reason="Skipping on Python 3.13, since modin is not supported on 3.13", +) def test_data_frame_data_type( page: Page, local_app: ShinyAppProc, diff --git a/tests/playwright/shiny/components/table/app.py b/tests/playwright/shiny/components/table/app.py index 1a2a2a4e9..4b101bd4c 100644 --- a/tests/playwright/shiny/components/table/app.py +++ b/tests/playwright/shiny/components/table/app.py @@ -1,6 +1,13 @@ from __future__ import annotations -import modin.pandas as md # pyright: ignore[reportMissingTypeStubs] +import sys + +# Remove this conditional once modin is supported on Python 3.13 +if sys.version_info < (3, 13): + import modin.pandas as md # pyright: ignore[reportMissingTypeStubs] +else: + # This block executes for Python 3.13 and above + raise RuntimeError("This test is not supported on Python 3.13") import narwhals.stable.v1 as nw import palmerpenguins # pyright: ignore[reportMissingTypeStubs] diff --git a/tests/playwright/shiny/components/table/test_table.py b/tests/playwright/shiny/components/table/test_table.py index d04bcd39d..5b75b2d4e 100644 --- a/tests/playwright/shiny/components/table/test_table.py +++ b/tests/playwright/shiny/components/table/test_table.py @@ -1,11 +1,17 @@ import re +import sys +import pytest from playwright.sync_api import Page from shiny.playwright import controller from shiny.run import ShinyAppProc +@pytest.mark.skipif( + sys.version_info[:2] == (3, 13), + reason="Skipping on Python 3.13, since modin is not supported on 3.13", +) def test_table_data_support(page: Page, local_app: ShinyAppProc) -> None: page.goto(local_app.url)