From 5fc2933b3c731483dbe52249d3a00212a9950864 Mon Sep 17 00:00:00 2001 From: PuQing Date: Sat, 14 Jun 2025 21:12:33 +0800 Subject: [PATCH 1/3] Allow verbose output for PGO runs in _runtest function --- Lib/test/libregrtest/single.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/libregrtest/single.py b/Lib/test/libregrtest/single.py index 57d7b649d2ef63..958a915626ad24 100644 --- a/Lib/test/libregrtest/single.py +++ b/Lib/test/libregrtest/single.py @@ -283,7 +283,7 @@ def _runtest(result: TestResult, runtests: RunTests) -> None: try: setup_tests(runtests) - if output_on_failure: + if output_on_failure or runtests.pgo: support.verbose = True stream = io.StringIO() From 51fb811d242dfce8412163bddd41b42e3ef45ebf Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sat, 14 Jun 2025 13:20:19 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst diff --git a/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst new file mode 100644 index 00000000000000..647fa07c0dcd75 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst @@ -0,0 +1 @@ +Allow verbose output for PGO runs in _runtest function From d98ee9ba3894139e083f34250c4e55df7cf097eb Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Tue, 17 Jun 2025 00:35:26 -0400 Subject: [PATCH 3/3] Expand the blurb description. --- .../next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst index 647fa07c0dcd75..2c9ecc5182935b 100644 --- a/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst +++ b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst @@ -1 +1 @@ -Allow verbose output for PGO runs in _runtest function +Show verbose output for failing tests during PGO profiling step with --enable-optimizations.