]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135489: Show verbose output for failing tests during PGO profiling step with ...
authorPuQing <me@puqing.work>
Tue, 17 Jun 2025 05:06:48 +0000 (13:06 +0800)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 05:06:48 +0000 (01:06 -0400)
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.