Skip to content

Commit 63c8e47

Browse files
authored
ci: ensure pyspark-specific tests only run for pytest (#2621)
1 parent 534c1d6 commit 63c8e47

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/dtypes_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def test_datetime_w_tz_duckdb() -> None:
485485

486486

487487
def test_datetime_w_tz_pyspark(constructor: Constructor) -> None: # pragma: no cover
488-
if "pyspark" not in str(constructor):
488+
if "pyspark" not in str(constructor) or "sqlframe" in str(constructor):
489489
pytest.skip()
490490
pytest.importorskip("pyspark")
491491
pytest.importorskip("zoneinfo")

tests/expr_and_series/dt/convert_time_zone_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def test_convert_time_zone_to_connection_tz_duckdb() -> None:
158158
def test_convert_time_zone_to_connection_tz_pyspark(
159159
constructor: Constructor,
160160
) -> None: # pragma: no cover
161-
if "pyspark" not in str(constructor):
161+
if "pyspark" not in str(constructor) or "sqlframe" in str(constructor):
162162
pytest.skip()
163163
pytest.importorskip("pyspark")
164164
pytest.importorskip("zoneinfo")

tests/expr_and_series/dt/replace_time_zone_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_replace_time_zone_to_connection_tz_duckdb() -> None:
149149
def test_replace_time_zone_to_connection_tz_pyspark(
150150
constructor: Constructor,
151151
) -> None: # pragma: no cover
152-
if "pyspark" not in str(constructor):
152+
if "pyspark" not in str(constructor) or "sqlframe" in str(constructor):
153153
pytest.skip()
154154
pytest.importorskip("pyspark")
155155
pytest.importorskip("zoneinfo")

0 commit comments

Comments
 (0)