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

gh-123930: Correct test of attribute failure to account for iOS#125959

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

Conversation

freakboy3742
Copy link
Contributor

#123929 improved the error message when a Python module shadows a binary module.

However, the test that was added didn't account for the behavior of the iOS import scheme. On iOS, the spec origin and the module's__file__ aren't equivalent, due to the iOS Framework loader. As a result, the test which was looking for the module's__file__ in the exception that is raised failed on the iOS buildbots.

On every other platform, The spec.origin and the module's__file__ are the same, so this PR updates the test to use the spec's origin.

@freakboy3742
Copy link
ContributorAuthor

!buildbot iOS

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@freakboy3742 for commit41ed908 🤖

The command will test the builders whose names match following regular expression:iOS

The builders matched are:

  • iOS ARM64 Simulator PR

Copy link
Contributor

@hauntsaninjahauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for the quick fix!

@freakboy3742
Copy link
ContributorAuthor

!buildbot iOS

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@freakboy3742 for commit8111d82 🤖

The command will test the builders whose names match following regular expression:iOS

The builders matched are:

  • iOS ARM64 Simulator PR

@freakboy3742freakboy3742 merged commit75401fe intopython:mainOct 25, 2024
34 checks passed
@miss-islington-app
Copy link

Thanks@freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 25, 2024
…pythonGH-125959)Update a test of importing attributes from binary modules to account for iOS conditions.(cherry picked from commit75401fe)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
@bedevere-app
Copy link

GH-125960 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelOct 25, 2024
hauntsaninja pushed a commit that referenced this pull requestOct 25, 2024
GH-125959) (#125960)gh-123930: Correct test of attribute failure to account for iOS (GH-125959)Update a test of importing attributes from binary modules to account for iOS conditions.(cherry picked from commit75401fe)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
@freakboy3742freakboy3742 deleted the ios-binmodule-attr-fail branchOctober 25, 2024 07:58
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull requestDec 13, 2024
…for iOS (pythonGH-125959) (python#125960)pythongh-123930: Correct test of attribute failure to account for iOS (pythonGH-125959)Update a test of importing attributes from binary modules to account for iOS conditions.(cherry picked from commit75401fe)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull requestDec 13, 2024
…for iOS (pythonGH-125959) (python#125960)pythongh-123930: Correct test of attribute failure to account for iOS (pythonGH-125959)Update a test of importing attributes from binary modules to account for iOS conditions.(cherry picked from commit75401fe)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull requestJan 12, 2025
…python#125959)Update a test of importing attributes from binary modules to account for iOS conditions.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hauntsaninjahauntsaninjahauntsaninja approved these changes

@brettcannonbrettcannonAwaiting requested review from brettcannonbrettcannon is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlanncoghlan is a code owner

@warsawwarsawAwaiting requested review from warsawwarsaw is a code owner

Assignees
No one assigned
Labels
3.13bugs and security fixes3.14bugs and security fixesOS-iosskip issueskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@freakboy3742@bedevere-bot@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp