8000 gh-117889: Fix PGO test in test_peg_generator by vstinner · Pull Request #117893 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117889: Fix PGO test in test_peg_generator #117893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-117889: Fix PGO test in test_peg_generator
Reuse support.check_cflags_pgo() in test_peg_generator to check if
PGO build is used or not.
  • Loading branch information
vstinner committed Apr 15, 2024
commit b0afdacaa4dee837b1c3627f0de4f23c767c62df
4 changes: 1 addition & 3 deletions Lib/test/test_peg_generator/test_c_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
from test.support import os_helper, import_helper
from test.support.script_helper import assert_python_ok

_py_cflags_nodist = sysconfig.get_config_var("PY_CFLAGS_NODIST")
_pgo_flag = sysconfig.get_config_var("PGO_PROF_USE_FLAG")
if _pgo_flag and _py_cflags_nodist and _pgo_flag in _py_cflags_nodist:
if support.check_cflags_pgo():
raise unittest.SkipTest("peg_generator test disabled under PGO build")

test_tools.skip_if_missing("peg_generator")
Expand Down
0