]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-135489: Show verbose output for failing tests during PGO profiling step...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Jun 2025 05:37:39 +0000 (07:37 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 05:37:39 +0000 (01:37 -0400)
(cherry picked from commit 5b3a826888ed3b598dc4bcdc6a48d5f6ae231f8d)

Co-authored-by: PuQing <me@puqing.work>
Lib/test/libregrtest/single.py
Misc/NEWS.d/next/Tests/2025-06-14-13-20-17.gh-issue-135489.Uh0yVO.rst [new file with mode: 0644]

index 57d7b649d2ef630a77b5db869d9d07eda4e23365..958a915626ad2414ff5b070daf3123f39a0b5330 100644 (file)
@@ -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 (file)
index 0000000..2c9ecc5
--- /dev/null
@@ -0,0 +1 @@
+Show verbose output for failing tests during PGO profiling step with --enable-optimizations.