pwntools icon indicating copy to clipboard operation
pwntools copied to clipboard

Test free-threaded Python with pytest-run-parallel

Open cclauss opened this issue 5 months ago • 1 comments

Continues the work started in:

  • #2627

To be confident about free-threaded compatibility, it is recommended to test with pytest-run-parallel.

  • https://py-free-threading.github.io/testing

Something like: % uvx --with=pytest-run-parallel pytest --iterations=8 --parallel-threads=auto

Pwntools Pull Request

Thanks for contributing to Pwntools! Take a moment to look at CONTRIBUTING.md to make sure you're familiar with Pwntools development.

Please provide a high-level explanation of what this pull request is for.

Testing

Pull Requests that introduce new code should try to add doctests for that code. See TESTING.md for more information.

Target Branch

Depending on what the PR is for, it needs to target a different branch.

You can always change the branch after you create the PR if it's against the wrong branch.

Branch Type of PR
dev New features, and enhancements
dev Documentation fixes and new tests
stable Bug fixes that affect the current stable branch
beta Bug fixes that affect the current beta branch, but not stable
dev Bug fixes for code that has never been released

Changelog

After creating your Pull Request, please add and push a commit that updates the changelog for the appropriate branch.
You can look at the existing changelog for examples of how to do this.

cclauss avatar Nov 06 '25 20:11 cclauss

pwnlib isn't fully thread-safe so this might reveal some areas that need work.

peace-maker avatar Nov 15 '25 10:11 peace-maker