cpython/Lib/test/libregrtest
Victor Stinner 1fc25a389c
[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 1512d6c6ee)
2023-10-02 17:40:02 +02:00
..
__init__.py bpo-37473: Don't import importlib ASAP in tests (GH-14661) 2019-07-14 19:31:12 +02:00
cmdline.py [3.12] gh-108834: Sync libregrtest with the main branch (#108966) 2023-09-08 15:14:17 +02:00
main.py [3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950) 2023-10-02 17:40:02 +02:00
pgo.py bpo-10572: Fixup Lib/test/libregrtest/pgo.py (GH-29327) 2021-11-01 09:57:28 +00:00
refleak.py [3.12] gh-108822: regrtest computes statistics (#108793) (#108833) 2023-09-04 13:45:50 +02:00
runtest.py [3.12] gh-108303: Move test_future into its own test_future_stmt subdir (#109368) (#109679) 2023-10-02 17:12:54 +02:00
runtest_mp.py [3.12] gh-108834: Sync libregrtest with the main branch (#108966) 2023-09-08 15:14:17 +02:00
save_env.py [3.12] gh-108822: regrtest computes statistics (#108793) (#108833) 2023-09-04 13:45:50 +02:00
setup.py Run Tools/scripts/reindent.py (#94225) 2022-06-26 10:34:06 +02:00
utils.py [3.12] gh-103053: Skip test_freeze_simple_script() on PGO build (#109591) (#109614) 2023-10-02 17:04:19 +02:00
win_utils.py bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) 2022-03-22 00:06:55 +00:00