]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109615: Fix support test_copy_python_src_ignore() (#109958) (#109962)
authorVictor Stinner <vstinner@python.org>
Wed, 27 Sep 2023 11:00:22 +0000 (13:00 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 11:00:22 +0000 (11:00 +0000)
commit8ac20e5404127d68624339c0b318abe2d14fe514
tree4839d2475e8f6ec08eaaa7aadb94102af6e9bfaa
parent242316860480fd33eb2a0afeb1154b64c46aa155
[3.11] gh-109615: Fix support test_copy_python_src_ignore() (#109958) (#109962)

gh-109615: Fix support test_copy_python_src_ignore() (#109958)

Fix the test when run on an installed Python: use "abs_srcdir" of
sysconfig, and skip the test if the Python source code cannot be
found.

* Tools/patchcheck/patchcheck.py, Tools/freeze/test/freeze.py and
  Lib/test/libregrtest/utils.py now first try to get "abs_srcdir"
  from sysconfig, before getting "srcdir" from sysconfig.
* test.pythoninfo logs sysconfig "abs_srcdir".

(cherry picked from commit b89ed9df39851348fbb1552294644f99f6b17d2c)
Lib/test/libregrtest/main.py
Lib/test/pythoninfo.py
Lib/test/test_support.py
Tools/freeze/test/freeze.py
Tools/scripts/patchcheck.py