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/test_tools | |
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/test_tools')
-rw-r--r-- | Lib/test/test_tools/test_freeze.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_tools/test_freeze.py b/Lib/test/test_tools/test_freeze.py index 922e74b..671ec29 100644 --- a/Lib/test/test_tools/test_freeze.py +++ b/Lib/test/test_tools/test_freeze.py @@ -15,6 +15,10 @@ with imports_under_tool('freeze', 'test'): @support.requires_zlib() @unittest.skipIf(sys.platform.startswith('win'), 'not supported on Windows') @support.skip_if_buildbot('not all buildbots have enough space') +# gh-103053: Skip test if Python is built with Profile Guided Optimization +# (PGO), since the test is just too slow in this case. +@unittest.skipIf(support.check_cflags_pgo(), + 'test is too slow with PGO') class TestFreeze(unittest.TestCase): @support.requires_resource('cpu') # Building Python is slow |