https://github.com/python/cpython/commit/d2292c29f7f626e412ee827c4dce9a3777b115db
commit: d2292c29f7f626e412ee827c4dce9a3777b115db
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: ned-deily <[email protected]>
date: 2025-06-17T01:37:39-04:00
summary:

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

(cherry picked from commit 5b3a826888ed3b598dc4bcdc6a48d5f6ae231f8d)

Co-authored-by: PuQing <[email protected]>

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 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()
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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to