Skip to content

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Nov 4, 2025

Let's drop Python's Global Interpreter Lock (GIL).

parallel_state.condition = threading.Condition()

Adding pytest-run-parallel and running pytest on Python >= 3.9 works, but adding the options below demonstrates that the use of global state makes this code thread-unsafe.
% pytest --iterations=8 # Fails.
% pytest --parallel-threads=auto # Fails.
% pytest --iterations=8 --parallel-threads=auto # Fails.

@cclauss cclauss changed the title Add free-threaded python3.14t to the testing fix(build): Add free-threaded python3.14t to the testing Nov 4, 2025
@cclauss cclauss closed this Nov 4, 2025
@cclauss cclauss deleted the python3.14t branch November 4, 2025 13:26
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.

3 participants