Skip to content

Commit

Permalink
ci: fix import error from dask test (#737)
Browse files Browse the repository at this point in the history
* ci: fix import error from dask test

* fix
  • Loading branch information
MarcoGorelli authored Aug 7, 2024
1 parent f668f3e commit 465a1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions tests/frame/add_test.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
from typing import Any

import pytest

import narwhals.stable.v1 as nw
from tests.utils import compare_dicts


def test_add(constructor: Any, request: Any) -> None:
if "dask" in str(constructor):
request.applymarker(pytest.mark.xfail)
def test_add(constructor: Any) -> None:
data = {"a": [1, 3, 2], "b": [4, 4, 6], "z": [7.0, 8, 9]}
df = nw.from_native(constructor(data))
result = df.with_columns(
Expand Down
2 changes: 1 addition & 1 deletion tests/translate/from_native_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_series_only_dask() -> None:
)
def test_eager_only_lazy_dask(eager_only: Any, context: Any) -> None:
pytest.importorskip("dask")
pytest.importorskip("dask_expr")
pytest.importorskip("dask_expr", exc_type=ImportError)
import dask.dataframe as dd

dframe = dd.from_pandas(df_pd)
Expand Down

0 comments on commit 465a1c7

Please sign in to comment.