]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950)
authorVictor Stinner <vstinner@python.org>
Mon, 2 Oct 2023 15:40:02 +0000 (17:40 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 15:40:02 +0000 (17:40 +0200)
commit1fc25a389cf126b580ca6fdb65acdd6e42281e38
tree91fa66d83ec0b06673748a5a81f423044ffb21af
parent3ab9fdaedb9c6b77c75cb036851332f4d9215748
[3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950)

gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)

Fix copy_source_tree() function of test_tools.test_freeze:

* Don't copy SRC_DIR/build/ anymore. This directory is modified by
  other tests running in parallel.
* Add test.support.copy_python_src_ignore().
* Use sysconfig to get the source directory.
* Use sysconfig.get_config_var() to get CONFIG_ARGS variable.

(cherry picked from commit 1512d6c6ee2a770afb339bbb74c1b990116f7f89)
Lib/test/libregrtest/main.py
Lib/test/support/__init__.py
Lib/test/test_support.py
Lib/test/test_venv.py
Tools/freeze/test/freeze.py