diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-20 01:58:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 01:58:34 (GMT) |
commit | 81cd1bd713624c3d26b647f3d28f2fd905887a0d (patch) | |
tree | 469d676f6e250c369c2dd056342cd184b4ddef39 /Lib/test/pythoninfo.py | |
parent | 3e3a7da590e1c3e5f03802e538f26c5204889c82 (diff) | |
download | cpython-81cd1bd713624c3d26b647f3d28f2fd905887a0d.zip cpython-81cd1bd713624c3d26b647f3d28f2fd905887a0d.tar.gz cpython-81cd1bd713624c3d26b647f3d28f2fd905887a0d.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r-- | Lib/test/pythoninfo.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index f16b798..c372efa 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -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, |