Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.12] gh-121735: Fix module-adjacent references in zip files (gh-123037)#124011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Yhg1s merged 3 commits intopython:3.12fromjaraco:backport-ba687d9-3.12
Sep 24, 2024

Conversation

@jaraco
Copy link
Member

@jaracojaraco commentedSep 12, 2024
edited
Loading

This PR is a selective backport ofgh-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).

@jaracojaraco 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
@jaracojaraco removed the request for review fromwarsawSeptember 12, 2024 15:25
@jaracojaraco marked this pull request as draftSeptember 12, 2024 15:42
@jaraco
Copy link
MemberAuthor

That's weird. The tests are failing in CI, but they're passing for me locally. I wonder why that is.

@jaraco
Copy link
MemberAuthor

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:

  1. I failed to copy the whole fix, which requires changes toLib/zipimport.py, which I'd missed because it was separated from the other crucial change by many changes to tests.
  2. 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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@FFY00FFY00Awaiting requested review from FFY00FFY00 is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jaraco@Yhg1s

[8]ページ先頭

©2009-2025 Movatter.jp