Skip to content

Commit

Permalink
Hack to fix test_spilling_local_cuda_cluster[True]
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Dec 16, 2020
1 parent 78353fc commit df1c0fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dask_cuda/tests/test_proxy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import operator
import pickle

import pandas
import pytest
from pandas.testing import assert_frame_equal

Expand Down Expand Up @@ -222,7 +223,11 @@ def task(x):
ddf = dask_cudf.from_cudf(df, npartitions=1)
ddf = ddf.map_partitions(task, meta=df.head())
got = ddf.compute()
assert_frame_equal(got.to_pandas(), df.to_pandas())
if not isinstance(got, pandas.Series):
# TODO: `got` should be of type cudf.core.dataframe.DataFrame
# but in CI, `got` is a `pandas.Series`
got = got.to_pandas()
assert_frame_equal(got, df.to_pandas())


class _PxyObjTest(proxy_object.ProxyObject):
Expand Down

0 comments on commit df1c0fd

Please sign in to comment.