Skip to content

Check that test_close_writer stops the worker threads - #303

Merged
rhpvorderman merged 1 commit into
pycompression:developfrom
ptweezy:test-close-writer-threads
Oct 28, 2026
Merged

rhpvorderman merged 1 commit into
pycompression:developfrom
ptweezy:test-close-writer-threads

Conversation

@ptweezy

@ptweezy ptweezy commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

test_close_writer checks only f.closed. This PR uses assert_writer_closed(), which the error tests already use. It also checks that the compression and output threads have stopped.

To test it, I changed close() to call stop() only after an error. The test passes on develop and fails with this PR.

This PR changes only tests, so it has no CHANGELOG entry.

Checklist

  • Pull request details were added to CHANGELOG.rst
  • Documentation was updated (if needed)

Use assert_writer_closed(), which the error tests already use. It also checks that the threads are no longer alive.
@rhpvorderman
rhpvorderman merged commit c1f1925 into pycompression:develop Oct 28, 2026
22 checks passed
@rhpvorderman

Copy link
Copy Markdown
Collaborator

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants