Skip to content

Commit

Permalink
Revert syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Feb 8, 2023
1 parent d52fc8b commit d6dae24
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions py-polars/tests/unit/io/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,9 @@ def test_compressed_csv(io_files_path: Path) -> None:

def test_partial_decompression(foods_file_path: Path) -> None:
f_out = io.BytesIO()
with (
open(foods_file_path, "rb") as f_read,
gzip.GzipFile(fileobj=f_out, mode="w") as f,
):
f.write(f_read.read())
with open(foods_file_path, "rb") as f_read: # noqa: SIM117
with gzip.GzipFile(fileobj=f_out, mode="w") as f:
f.write(f_read.read())

csv_bytes = f_out.getvalue()
for n_rows in [1, 5, 26]:
Expand Down

0 comments on commit d6dae24

Please sign in to comment.