This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Some PGO tests are failing when building with --enable-optimizations --disable-test-modules
Type: behavior Stage: resolved
Components: Build, Tests Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, thesamesam
Priority: normal Keywords: patch

Created on 2021-10-29 14:37 by christian.heimes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29315 merged christian.heimes, 2021-10-29 15:21
Messages (2)
msg405308 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-10-29 14:37
Some PGO tests are failing when Python is build with options ./configure --disable-test-modules --enable-optimizations . Test failures are caused by missing _testcapi module.

./python -m test --pgo --timeout=1200 || true
test test_array failed
test test_bytes failed
test test_cmath failed
test test_codecs failed
0:00:23 load avg: 1.98 [13/44] test_datetime
Failed to call load_tests:
...
ModuleNotFoundError: No module named '_testcapi'
test test_embed failed
test test_float failed
test test_itertools failed
test test_ordered_dict failed
test test_pickle failed
test test_struct failed
test test_unicode failed
test test_xml_etree_c failed
test_xml_etree_c failed (3 errors)
msg405425 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-01 10:14
New changeset e73283a20fb05b70da2990decefac0e011faec17 by Christian Heimes in branch 'main':
bpo-45668: Fix PGO tests without test extensions (GH-29315)
https://github.com/python/cpython/commit/e73283a20fb05b70da2990decefac0e011faec17
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89831
2021-11-01 11:18:19christian.heimessetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-11-01 10:14:58christian.heimessetmessages: + msg405425
2021-10-29 16:12:39thesamesamsetnosy: + thesamesam
2021-10-29 15:21:39christian.heimessetkeywords: + patch
stage: patch review
pull_requests: + pull_request27584
2021-10-29 14:37:29christian.heimescreate