]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109615: Fix support test_copy_python_src_ignore() (#109958)
authorVictor Stinner <vstinner@python.org>
Wed, 27 Sep 2023 10:32:12 +0000 (12:32 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 10:32:12 +0000 (12:32 +0200)
commitb89ed9df39851348fbb1552294644f99f6b17d2c
tree71b0a04c09ee2ed373dff487f7ce64da965c426f
parent91fb8daa2494df4dd6a841ca8c742a03175c7ecd
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".
Lib/test/libregrtest/utils.py
Lib/test/pythoninfo.py
Lib/test/test_support.py
Tools/freeze/test/freeze.py
Tools/patchcheck/patchcheck.py