Fix test_python_get_preferred_default for rc Python releases#10478
Merged
Secrus merged 1 commit intopython-poetry:mainfrom Jul 31, 2025
Merged
Fix test_python_get_preferred_default for rc Python releases#10478Secrus merged 1 commit intopython-poetry:mainfrom
Secrus merged 1 commit intopython-poetry:mainfrom
Conversation
Reviewer's GuideRefactored the version string computation in the test for get_preferred_python to explicitly handle final, candidate (RC), and other version markers, ensuring RC releases are correctly parsed per PEP 440. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Secrus
previously approved these changes
Jul 29, 2025
Contributor
Author
|
I got: Will try to fight that. |
31b6c42 to
12423a0
Compare
This is a followup for bca92d5 Apparently, sys.version_info has "candidate" in it: >>> sys.version_info[:5] (3, 14, 0, 'candidate', 1) And that is not a valid PEP 440 version: poetry.core.version.exceptions.InvalidVersionError: Invalid PEP 440 version: '3.14.0.candidate.1' This makes the test pass with 3.14.0rc1.
12423a0 to
69df76e
Compare
Secrus
approved these changes
Jul 31, 2025
radoering
pushed a commit
that referenced
this pull request
Aug 4, 2025
(cherry picked from commit 3d0ae4e)
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This is a followup for bca92d5
Apparently, sys.version_info has "candidate" in it:
And that is not a valid PEP 440 version:
This makes the test pass with 3.14.0rc1.
Summary by Sourcery
Bug Fixes: