Skip to content

Test that igzip_threaded.open() starts the given number of threads - #309

Open
ptweezy wants to merge 1 commit into
pycompression:developfrom
ptweezy:test-threaded-open-threads
Open

ptweezy wants to merge 1 commit into
pycompression:developfrom
ptweezy:test-threaded-open-threads

Conversation

@ptweezy

@ptweezy ptweezy commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

No test checks that igzip_threaded.open() passes threads to _ThreadedGzipWriter. When I removed that argument, the writer used one thread, and all tests in tests/test_igzip_threaded.py and tests/test_freethreading.py still passed. The new test opens a writer with threads=3 and checks that it has three running compression threads. It fails with that argument removed.

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)

No test checked that open() passes threads to the writer. Without it, the writer uses one thread, and the threaded tests still passed.

This branch has not been deployed

No deployments
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.

1 participant