Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jul 24, 2024
1 parent 9445254 commit 0a9dc4f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions py-polars/tests/unit/io/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,8 @@ def test_compressed_csv(io_files_path: Path, monkeypatch: pytest.MonkeyPatch) ->

# zstd compressed file
csv_file = io_files_path / "zstd_compressed.csv.zst"
with pytest.raises(
ComputeError,
match="cannot scan compressed csv; use `read_csv` for compressed data",
):
pl.scan_csv(csv_file).collect()
out = pl.scan_csv(csv_file, truncate_ragged_lines=True).collect()
assert_frame_equal(out, expected)
out = pl.read_csv(str(csv_file), truncate_ragged_lines=True)
assert_frame_equal(out, expected)

Expand Down

0 comments on commit 0a9dc4f

Please sign in to comment.