gh-103053: Skip test_freeze_simple_script() on PGO build (#109591)

Skip test_freeze_simple_script() of test_tools.test_freeze if Python
is built with "./configure --enable-optimizations", which means with
Profile Guided Optimization (PGO): it just makes the test too slow.
The freeze tool is tested by many other CIs with other (faster)
compiler flags.

test.pythoninfo now gets also get_build_info() of
test.libregrtests.utils.
This commit is contained in:
Victor Stinner 2023-09-20 03:58:34 +02:00 committed by GitHub
parent 3e3a7da590
commit 81cd1bd713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 10 deletions

View file

@ -956,6 +956,16 @@ def collect_tempfile(info_add):
info_add('tempfile.gettempdir', tempfile.gettempdir())
def collect_libregrtest_utils(info_add):
try:
from test.libregrtest import utils
except ImportError:
return
info_add('libregrtests.build_info', ' '.join(utils.get_build_info()))
def collect_info(info):
error = False
info_add = info.add
@ -995,6 +1005,7 @@ def collect_info(info):
collect_tkinter,
collect_windows,
collect_zlib,
collect_libregrtest_utils,
# Collecting from tests should be last as they have side effects.
collect_test_socket,