]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109951)
authorVictor Stinner <vstinner@python.org>
Wed, 27 Sep 2023 08:59:02 +0000 (10:59 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 08:59:02 +0000 (08:59 +0000)
commit242316860480fd33eb2a0afeb1154b64c46aa155
tree5acce130d3cf7127f0d2ff660c6661111eace524
parentd951aaea9762d86b560aaeb335e6ffac68238868
[3.11] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109951)

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