Skip to content

Commit

Permalink
Directly call a piped writer for pipedwriter pipesize test
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Dec 24, 2023
1 parent 0b33d81 commit e82b50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_piped.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_concatenated_gzip_function():
)
def test_pipesize_changed(tmp_path, monkeypatch):
# Higher compression level to avoid opening with threaded opener
with xopen(tmp_path / "hello.gz", "wb", compresslevel=5) as f:
with PipedGzipWriter(tmp_path / "hello.gz", "wb", compresslevel=5) as f:
assert isinstance(f, PipedCompressionWriter)
assert fcntl.fcntl(f._file.fileno(), fcntl.F_GETPIPE_SZ) == _MAX_PIPE_SIZE

Expand Down

0 comments on commit e82b50c

Please sign in to comment.