Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload.#122493
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
!buildbot iOS |
bedevere-bot commentedJul 31, 2024
🤖 New build scheduled with the buildbot fleet by@freakboy3742 for commit02112a0 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
bedevere-bot commentedJul 31, 2024
f071f01
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@freakboy3742 for the PR, and@Yhg1s for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13. |
…importlib.reload. (pythonGH-122493)(cherry picked from commitf071f01)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
…importlib.reload. (pythonGH-122493)(cherry picked from commitf071f01)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-122504 is a backport of this pull request to the3.13 branch. |
…importlib.reload. (pythonGH-122493)(cherry picked from commitf071f01)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-122505 is a backport of this pull request to the3.12 branch. |
…importlib.reload. (pythonGH-122493)(cherry picked from commitf071f01)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-122506 is a backport of this pull request to the3.11 branch. |
…importlib.reload. (pythonGH-122493)(cherry picked from commitf071f01)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-122507 is a backport of this pull request to the3.10 branch. |
…importlib.reload. (pythonGH-122493)(cherry picked from commitf071f01)Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-122508 is a backport of this pull request to the3.9 branch. |
GH-122509 is a backport of this pull request to the3.8 branch. |
…importlib.reload. (python#122493)Co-authored-by: Gregory P. Smith <greg@krypto.org>
Uh oh!
There was an error while loading.Please reload this page.
#122134 introduced a small change to the operation of the pure-Python
socket.socketpair()
method, and added a test for that method. However, the test usedimportlib.reload
, which is problematic because there are methods that include import-time binding of symbols like_GLOBAL_DEFAULT_TIMEOUT
as default arguments.This manifested as test failures and a test lockup on iOS, but it would likely be possible to manifest similar problems on other platforms.
This PR modifies the
socket
module so that the pure Python fallback method isalways defined, and is monkey patched into place for the pure python test, rather than performing a module reload.Tagged for backport to all releases back to 3.8 because#122134 was back ported to all releases.