Skip to content

Test free-threading builds and fix Local data leak for thread_inherit_context - #564

Merged
carltongibson merged 1 commit into
mainfrom
free-threading-context-local
Jul 12, 2026
Merged

carltongibson merged 1 commit into
mainfrom
free-threading-context-local

Conversation

@carltongibson

@carltongibson carltongibson commented Jun 19, 2026 •

Copy link
Copy Markdown
Member

Running Django's test suite against free-threading builds revealed a leak in Local when sys.flags.thread_inherit_context is enabled, which it is by default for the free-threading builds.

Fix that, and add test runs for free-threading builds.

See also django/django#21521

@carltongibson
carltongibson force-pushed the free-threading-context-local branch 2 times, most recently from 0132ed9 to 763edfe Compare June 19, 2026 10:45
@carltongibson
carltongibson force-pushed the free-threading-context-local branch from 763edfe to 61aee36 Compare July 12, 2026 12:03
@carltongibson
carltongibson force-pushed the free-threading-context-local branch from 61aee36 to 05125d3 Compare July 12, 2026 12:06
@carltongibson
carltongibson merged commit deda0d4 into main Jul 12, 2026
8 checks passed
@carltongibson
carltongibson deleted the free-threading-context-local branch July 12, 2026 12:09
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