Skip to content

Commit d9b5c5b

Browse files
authored
Fix test_enforce_columns on Python 3.14 (dask#12047)
1 parent e01605e commit d9b5c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dask/dataframe/io/tests/test_csv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ def test_enforce_columns(reader, blocks):
346346
blocks = [blocks[0], [blocks[1][0].replace(b"a", b"A"), blocks[1][1]]]
347347
head = reader(BytesIO(blocks[0][0]), header=0)
348348
header = blocks[0][0].split(b"\n")[0] + b"\n"
349+
dfs = text_blocks_to_pandas(reader, blocks, header, head, {}, enforce=True)
349350
with pytest.raises(ValueError):
350-
dfs = text_blocks_to_pandas(reader, blocks, header, head, {}, enforce=True)
351-
dask.compute(*dfs, scheduler="sync")
351+
dask.compute(dfs, scheduler="sync")
352352

353353

354354
#############################

0 commit comments

Comments
 (0)