Skip to content

Commit ec26fe1

Browse files
committed
Skip test on Python 3.9 due to scikit-learn version
Added a pytest skipif marker to skip test_external_templates on Python 3.9, as the required scikit-learn version is only supported on Python 3.10 and above.
1 parent c22da78 commit ec26fe1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/playwright/examples/test_external_templates.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from pathlib import Path
23

34
import pytest
@@ -12,9 +13,12 @@
1213
)
1314

1415

16+
@pytest.mark.skipif(
17+
sys.version_info[:2] == (3, 9),
18+
reason="Skipping test for Python 3.9 since scikit-learn pinned version is only supported on Python 3.10+",
19+
)
1520
@pytest.mark.only_browser("chromium")
1621
@pytest.mark.flaky(reruns=reruns, reruns_delay=reruns_delay)
1722
@pytest.mark.parametrize("ex_app_path", get_apps("py-shiny-templates"))
1823
def test_external_templates(page: Page, ex_app_path: str) -> None:
19-
2024
validate_example(page, ex_app_path)

0 commit comments

Comments
 (0)