FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-123930: Correct test of attribute failure to account for iOS by freakboy3742 · Pull Request #125959 · python/cpython · GitHub

Repository navigation

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

Merged
freakboy3742 merged 2 commits into
python:mainfrom
freakboy3742:ios-binmodule-attr-fail
Oct 25, 2024
Merged

freakboy3742 merged 2 commits into
python:mainfrom
freakboy3742:ios-binmodule-attr-fail

Conversation

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor Author

!buildbot iOS

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 41ed908 🤖

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

The builders matched are:

  • iOS ARM64 Simulator PR

hauntsaninja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you for the quick fix!

Copy link
Copy Markdown
Contributor Author

!buildbot iOS

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 8111d82 🤖

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

The builders matched are:

  • iOS ARM64 Simulator PR

freakboy3742 merged commit 75401fe into python:main Oct 25, 2024

Copy link
Copy Markdown

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 request Oct 25, 2024
…pythonGH-125959)

Update a test of importing attributes from binary modules to account for iOS conditions.
(cherry picked from commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>

bedevere-app Bot commented Oct 25, 2024

Copy link
Copy Markdown

GH-125960 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Oct 25, 2024
hauntsaninja pushed a commit that referenced this pull request Oct 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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 deleted the ios-binmodule-attr-fail branch October 25, 2024 07:58
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…python#125959)

Update a test of importing attributes from binary modules to account for iOS conditions.
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Feb 3, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Feb 3, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Jun 12, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Jun 12, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Oct 2, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Oct 2, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Oct 12, 2026
…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 commit 75401fe)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
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

Labels

3.13 only security fixes 3.14 bugs and security fixes OS-ios skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL