diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-27 10:32:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 10:32:12 (GMT) |
commit | b89ed9df39851348fbb1552294644f99f6b17d2c (patch) | |
tree | 71b0a04c09ee2ed373dff487f7ce64da965c426f /Lib/test/pythoninfo.py | |
parent | 91fb8daa2494df4dd6a841ca8c742a03175c7ecd (diff) | |
download | cpython-b89ed9df39851348fbb1552294644f99f6b17d2c.zip cpython-b89ed9df39851348fbb1552294644f99f6b17d2c.tar.gz cpython-b89ed9df39851348fbb1552294644f99f6b17d2c.tar.bz2 |
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".
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r-- | Lib/test/pythoninfo.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index c372efa..0e7528e 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -520,6 +520,7 @@ def collect_sysconfig(info_add): 'SHELL', 'SOABI', 'abs_builddir', + 'abs_srcdir', 'prefix', 'srcdir', ): |