Skip to content

Commit b276d57

Browse files
committed
skip imports for python 3.13
1 parent 5c6ec1d commit b276d57

File tree

2 files changed

+17
-2
lines changed
  • tests/playwright/shiny/components

2 files changed

+17
-2
lines changed

tests/playwright/shiny/components/data_frame/data_type/app.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
from __future__ import annotations
22

3-
import modin.pandas as mpd # pyright: ignore[reportMissingTypeStubs]
3+
import sys
4+
5+
# Remove this conditional once modin is supported on Python 3.13
6+
if sys.version_info < (3, 13):
7+
import modin.pandas as mpd # pyright: ignore[reportMissingTypeStubs]
8+
else:
9+
# This block executes for Python 3.13 and above
10+
raise RuntimeError("This test is not supported on Python 3.13")
11+
412
import narwhals.stable.v1 as nw
513
import palmerpenguins # pyright: ignore[reportMissingTypeStubs]
614
import polars as pl

tests/playwright/shiny/components/table/app.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
from __future__ import annotations
22

3-
import modin.pandas as md # pyright: ignore[reportMissingTypeStubs]
3+
import sys
4+
5+
# Remove this conditional once modin is supported on Python 3.13
6+
if sys.version_info < (3, 13):
7+
import modin.pandas as md # pyright: ignore[reportMissingTypeStubs]
8+
else:
9+
# This block executes for Python 3.13 and above
10+
raise RuntimeError("This test is not supported on Python 3.13")
411
import narwhals.stable.v1 as nw
512
import palmerpenguins # pyright: ignore[reportMissingTypeStubs]
613

0 commit comments

Comments
 (0)