diff --git a/py-polars/tests/unit/streaming/test_streaming_io.py b/py-polars/tests/unit/streaming/test_streaming_io.py index d825030d9d50..3c1ec7fb2469 100644 --- a/py-polars/tests/unit/streaming/test_streaming_io.py +++ b/py-polars/tests/unit/streaming/test_streaming_io.py @@ -194,12 +194,16 @@ def test_sink_csv_batch_size_zero() -> None: lf.sink_csv("test.csv", batch_size=0) -def test_sink_csv_nested_data() -> None: +@pytest.mark.write_disk() +def test_sink_csv_nested_data(tmp_path: Path) -> None: + tmp_path.mkdir(exist_ok=True) + path = tmp_path / "data.csv" + lf = pl.LazyFrame({"list": [[1, 2, 3, 4, 5]]}) with pytest.raises( pl.exceptions.ComputeError, match="CSV format does not support nested data" ): - lf.sink_csv("path") + lf.sink_csv(path) def test_scan_csv_only_header_10792(io_files_path: Path) -> None: