Skip to content

Commit 5190b44

Browse files
authored
Temporarily skip tests due to dask/distributed#8953 (#17472)
Temporarily skip tests failing due to an upstream dask change. Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Matthew Murray (https://github.com/Matt711) URL: #17472
1 parent 3e418dd commit 5190b44

File tree

1 file changed

+49
-7
lines changed

1 file changed

+49
-7
lines changed

python/custreamz/custreamz/tests/test_dataframes.py

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,13 @@ def test_set_index():
216216
assert_eq(b[0], df.set_index(df.y + 1))
217217

218218

219-
def test_binary_stream_operators(stream):
219+
def test_binary_stream_operators(request, stream):
220+
request.applymarker(
221+
pytest.mark.xfail(
222+
isinstance(stream, DaskStream),
223+
reason="https://github.com/dask/distributed/issues/8953",
224+
)
225+
)
220226
df = cudf.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
221227

222228
expected = df.x + df.y
@@ -242,7 +248,13 @@ def test_index(stream):
242248
assert_eq(L[1], df.index + 5)
243249

244250

245-
def test_pair_arithmetic(stream):
251+
def test_pair_arithmetic(request, stream):
252+
request.applymarker(
253+
pytest.mark.xfail(
254+
isinstance(stream, DaskStream),
255+
reason="https://github.com/dask/distributed/issues/8953",
256+
)
257+
)
246258
df = cudf.DataFrame({"x": list(range(10)), "y": [1] * 10})
247259

248260
a = DataFrame(example=df.iloc[:0], stream=stream)
@@ -255,7 +267,13 @@ def test_pair_arithmetic(stream):
255267
assert_eq(cudf.concat(L), (df.x + df.y) * 2)
256268

257269

258-
def test_getitem(stream):
270+
def test_getitem(request, stream):
271+
request.applymarker(
272+
pytest.mark.xfail(
273+
isinstance(stream, DaskStream),
274+
reason="https://github.com/dask/distributed/issues/8953",
275+
)
276+
)
259277
df = cudf.DataFrame({"x": list(range(10)), "y": [1] * 10})
260278

261279
a = DataFrame(example=df.iloc[:0], stream=stream)
@@ -332,7 +350,13 @@ def test_repr_html(stream):
332350
assert "1" in html
333351

334352

335-
def test_setitem(stream):
353+
def test_setitem(request, stream):
354+
request.applymarker(
355+
pytest.mark.xfail(
356+
isinstance(stream, DaskStream),
357+
reason="https://github.com/dask/distributed/issues/8953",
358+
)
359+
)
336360
df = cudf.DataFrame({"x": list(range(10)), "y": [1] * 10})
337361

338362
sdf = DataFrame(example=df.iloc[:0], stream=stream)
@@ -356,7 +380,13 @@ def test_setitem(stream):
356380
assert_eq(L[-1], df.mean())
357381

358382

359-
def test_setitem_overwrites(stream):
383+
def test_setitem_overwrites(request, stream):
384+
request.applymarker(
385+
pytest.mark.xfail(
386+
isinstance(stream, DaskStream),
387+
reason="https://github.com/dask/distributed/issues/8953",
388+
)
389+
)
360390
df = cudf.DataFrame({"x": list(range(10))})
361391
sdf = DataFrame(example=df.iloc[:0], stream=stream)
362392
stream = sdf.stream
@@ -413,8 +443,14 @@ def test_setitem_overwrites(stream):
413443
],
414444
)
415445
def test_rolling_count_aggregations(
416-
op, window, m, pre_get, post_get, kwargs, stream
446+
request, op, window, m, pre_get, post_get, kwargs, stream
417447
):
448+
request.applymarker(
449+
pytest.mark.xfail(
450+
isinstance(stream, DaskStream) and len(kwargs) == 0,
451+
reason="https://github.com/dask/distributed/issues/8953",
452+
)
453+
)
418454
index = pd.DatetimeIndex(
419455
pd.date_range("2000-01-01", "2000-01-03", freq="1h")
420456
)
@@ -808,7 +844,13 @@ def test_reductions_with_start_state(stream):
808844
assert output2[0] == 360
809845

810846

811-
def test_rolling_aggs_with_start_state(stream):
847+
def test_rolling_aggs_with_start_state(request, stream):
848+
request.applymarker(
849+
pytest.mark.xfail(
850+
isinstance(stream, DaskStream),
851+
reason="https://github.com/dask/distributed/issues/8953",
852+
)
853+
)
812854
example = cudf.DataFrame({"name": [], "amount": []}, dtype="float64")
813855
sdf = DataFrame(stream, example=example)
814856
output0 = (

0 commit comments

Comments
 (0)