]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-135374: Adjust test for setuptools' replacement of distutils (GH-138796...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 29 Sep 2025 14:27:23 +0000 (16:27 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Sep 2025 14:27:23 +0000 (16:27 +0200)
commit91af0263101251ac1652bc7457e940cb821a2245
tree3b32656e7ade99c3fc9f0e78a0a9f13d6acd8e96
parent7252d2b73b3dea0c17a644527b767aa6da1305bd
[3.10] gh-135374: Adjust test for setuptools' replacement of distutils (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 987af36a717793e97aad57f7da36a0677edfbdbd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Lib/test/test___all__.py
Lib/test/test_sundry.py