From d0effce3bdd05c76b73222ab352529fb87efc5b1 Mon Sep 17 00:00:00 2001 From: ptweezy Date: Sat, 24 Oct 2026 12:30:59 -0400 Subject: [PATCH] Stop passing "rb" as the queue size in test_close_reader The second parameter of _ThreadedGzipReader is queue_size, so the test created queue.Queue("rb"). If the reader thread got to put() before close(), it failed with TypeError. --- tests/test_igzip_threaded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_igzip_threaded.py b/tests/test_igzip_threaded.py index 572ece53..5a028292 100644 --- a/tests/test_igzip_threaded.py +++ b/tests/test_igzip_threaded.py @@ -211,7 +211,7 @@ def test_threaded_close_error(monkeypatch, threads): def test_close_reader(): tmp = io.BytesIO(Path(TEST_FILE).read_bytes()) - f = igzip_threaded._ThreadedGzipReader(tmp, "rb") + f = igzip_threaded._ThreadedGzipReader(tmp) f.close() assert f.closed # Make sure double closing does not raise errors