GeezerVison is showing github.com — [3.12] gh-121735: Fix module-adjacent references in zip files (gh-123037) by jaraco · Pull Request #124011 · python/cpython
Conversation
jaraco
commented
Sep 12, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR is a selective backport of gh-123037, pulling only the fix and a one-off test to protect the behavior, but avoiding the test suite refactoring (which could not be backported as it also relies on other features only in Python 3.13).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jaraco
changed the title
[3.12] gh-121735: Fix module-adjacent references in zip files
[3.12] gh-121735: Fix module-adjacent references in zip files (gh-123037)
Sep 12, 2024
|
That's weird. The tests are failing in CI, but they're passing for me locally. I wonder why that is.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
That's weird. The tests are failing in CI, but they're passing for me locally. I wonder why that is.
The issue was twofold:
- I failed to copy the whole fix, which requires changes to
Lib/zipimport.py, which I'd missed because it was separated from the other crucial change by many changes to tests.
- Because I was running the tests against a previous build, the zipimport hadn't been recompiled, so was still using a bootstrap zip importer with the needed changes.
Rebuilding cpython from scratch allowed the issue to replicate.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Applying the fix only and not the refactoring of the test suite.
Reviewers
FFY00
Awaiting requested review from FFY00
FFY00 is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|