mirror of
https://github.com/python/cpython.git
synced 2025-08-08 19:09:46 +00:00
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.
(cherry picked from commit 81cd1bd713
)
This commit is contained in:
parent
5ba9d2b98f
commit
dc70d30732
5 changed files with 35 additions and 10 deletions
|
@ -867,6 +867,15 @@ def collect_fips(info_add):
|
|||
pass
|
||||
|
||||
|
||||
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
|
||||
|
@ -904,6 +913,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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue