cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-116738: Add free-threading tests for binascii

Open raven-dev-ops opened this issue 2 weeks ago • 5 comments

Summary

  • Add free-threading regression coverage for binascii (gh-116738).
  • Assert that importing binascii does not enable the GIL when running with -X gil=0.
  • Add a multi-thread stress test for common binascii operations under -X gil=0.

Motivation

  • Built-in extension modules should be thread-safe in free-threaded builds and correctly declare their GIL usage.

Testing

  • Default build: ./python -m test -j0 test_binascii
  • Free-threaded build: ./python -X gil=0 -m test -j0 test_binascii

Issue

  • gh-116738

raven-dev-ops avatar Dec 28 '25 00:12 raven-dev-ops

All commit authors signed the Contributor License Agreement.

CLA signed

python-cla-bot[bot] avatar Dec 28 '25 00:12 python-cla-bot[bot]

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

bedevere-app[bot] avatar Dec 28 '25 00:12 bedevere-app[bot]

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

bedevere-app[bot] avatar Dec 28 '25 00:12 bedevere-app[bot]

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

bedevere-app[bot] avatar Dec 28 '25 01:12 bedevere-app[bot]

This is the first time I have tried to contribute to an open-source project, just let me know what I am doing wrong, I am thankful for your time.

raven-dev-ops avatar Dec 28 '25 02:12 raven-dev-ops