Conversation
The cancellation drain in run_until_complete steps the loop after run_forever has already cleared the running-loop slot, and from Python 3.14 a task refuses to step unless its loop is the running one — so the drain now declares itself for its duration. The plugin tests also pin child pytest stdio to UTF-8: a failure traceback can render source lines carrying an em-dash, which a Windows child writes in the console code page while pytester reads UTF-8 back.
Python 3.14's loop contract grows an eager_start parameter on create_task. An eager first step runs at creation time, before the ready queue ever sees the task, so the seeded draw would never get to order it against anything: accepting the argument and fencing a true value is the honest answer, and declining it stays the stdlib default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds windows-latest and CPython 3.14 to the test matrix, keeping fail-fast off so a platform-specific failure shows the full picture. The core is pure stdlib and the parallel explorer already uses the spawn start method, so Windows is expected to pass; this run is the proof rather than the claim.