Uh oh!
There was an error while loading. Please reload this page.
[3.11] gh-135374: Adjust test for setuptools' replacement of distutils - #138796
Conversation
ensurepip installs a bundled copy of distutils, which overrides the stdlib module. This affects several tests. This commit: - skips distutils in test___all__, as we're unlikely to break `__all__` in a security-fix-only branch (and if we do it's not much of a a big deal) - skips importability tests of distutils submodules if the setuptools hack is detected
encukou
commented
Sep 11, 2025
!buildbot Installed |
bedevere-bot
commented
Sep 11, 2025
🤖 New build scheduled with the buildbot fleet by @encukou for commit 86a50bf 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F138796%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
encukou
commented
Sep 11, 2025
#138755 should fix the GHA failure. |
zware
left a comment
There was a problem hiding this comment.
One cleanup suggestion, otherwise LGTM.
Uh oh!
There was an error while loading. Please reload this page.
encukou
commented
Sep 12, 2025
FWIW, the
|
emmatyping
left a comment
There was a problem hiding this comment.
One typo fix, but otherwise looks good!
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Emma Smith <emma@emmatyping.dev>
…stutils (pythonGH-138796) ensurepip installs a bundled copy of distutils, which overrides the stdlib module. This affects several tests. This commit: - skips distutils in test___all__, as we're unlikely to break `__all__` in a security-fix-only branch (and if we do it's not much of a a big deal) - skips importability tests of distutils submodules if the setuptools hack is detected (cherry picked from commit 987af36) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Emma Smith <emma@emmatyping.dev>
…stutils (pythonGH-138796) ensurepip installs a bundled copy of distutils, which overrides the stdlib module. This affects several tests. This commit: - skips distutils in test___all__, as we're unlikely to break `__all__` in a security-fix-only branch (and if we do it's not much of a a big deal) - skips importability tests of distutils submodules if the setuptools hack is detected (cherry picked from commit 987af36) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Emma Smith <emma@emmatyping.dev>
GH-139303 is a backport of this pull request to the 3.10 branch. |
GH-139304 is a backport of this pull request to the 3.9 branch. |
GH-138796) (GH-139303) ensurepip installs a bundled copy of distutils, which overrides the stdlib module. This affects several tests. This commit: - skips distutils in test___all__, as we're unlikely to break `__all__` in a security-fix-only branch (and if we do it's not much of a a big deal) - skips importability tests of distutils submodules if the setuptools hack is detected (cherry picked from commit 987af36) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Emma Smith <emma@emmatyping.dev>
…GH-138796) (GH-139304) ensurepip installs a bundled copy of distutils, which overrides the stdlib module. This affects several tests. This commit: - skips distutils in test___all__, as we're unlikely to break `__all__` in a security-fix-only branch (and if we do it's not much of a a big deal) - skips importability tests of distutils submodules if the setuptools hack is detected (cherry picked from commit 987af36) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Emma Smith <emma@emmatyping.dev>
ensurepip installs a bundled copy of distutils, which overrides the stdlib module. This affects several tests. This commit:
__all__in a security-fix-only branch (and if we do it's not much of a a big deal)