]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)
authorVictor Stinner <vstinner@python.org>
Wed, 27 Sep 2023 08:18:39 +0000 (10:18 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 08:18:39 +0000 (08:18 +0000)
commit1512d6c6ee2a770afb339bbb74c1b990116f7f89
treec06112bc117488f73830e3f739a522020eec8fea
parent0e28d0f7a1bc3776cc07e0f8b91bc43fcdbb4206
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.
Lib/test/libregrtest/utils.py
Lib/test/support/__init__.py
Lib/test/test_support.py
Lib/test/test_venv.py
Tools/freeze/test/freeze.py