https://github.com/python/cpython/commit/28a70a59e467d1a4ddee0a060e0d837311c510f7
commit: 28a70a59e467d1a4ddee0a060e0d837311c510f7
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: ned-deily <n...@python.org>
date: 2025-06-17T01:47:27-04:00
summary:

[3.13] gh-135489: Show verbose output for failing tests during PGO profiling 
step with `--enable-optimizations` (#135600)

Co-authored-by: PuQing <m...@puqing.work>

files:
A Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst
M Lib/test/libregrtest/single.py

diff --git a/Lib/test/libregrtest/single.py b/Lib/test/libregrtest/single.py
index adc8f1f455579f..8fc852f86b455c 100644
--- a/Lib/test/libregrtest/single.py
+++ b/Lib/test/libregrtest/single.py
@@ -245,7 +245,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()
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..2c9ecc5182935b
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst
@@ -0,0 +1 @@
+Show verbose output for failing tests during PGO profiling step with 
--enable-optimizations.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to