From ae8e4e5e404ac3c4ca931fc1e8140e606e541c96 Mon Sep 17 00:00:00 2001 From: ptweezy Date: Tue, 27 Oct 2026 15:43:35 -0400 Subject: [PATCH] Check that test_close_writer stops the worker threads Use assert_writer_closed(), which the error tests already use. It also checks that the threads are no longer alive. --- tests/test_igzip_threaded.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_igzip_threaded.py b/tests/test_igzip_threaded.py index dd26e95e..15d334d7 100644 --- a/tests/test_igzip_threaded.py +++ b/tests/test_igzip_threaded.py @@ -224,9 +224,7 @@ def test_close_writer(threads): f = igzip_threaded._ThreadedGzipWriter( io.BytesIO(), threads=threads) f.close() - assert f.closed - # Make sure double closing does not raise errors - f.close() + assert_writer_closed(f) def test_reader_not_writable():