]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] 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:47:27 +0000 (07:47 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 05:47:27 +0000 (01:47 -0400)
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 adc8f1f455579fa56830521e33af1dd88cd42420..8fc852f86b455c437a86b2670873d221dc6b21a8 100644 (file)
@@ -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 (file)
index 0000000..2c9ecc5
--- /dev/null
@@ -0,0 +1 @@
+Show verbose output for failing tests during PGO profiling step with --enable-optimizations.