From: PuQing Date: Tue, 17 Jun 2025 05:06:48 +0000 (+0800) Subject: gh-135489: Show verbose output for failing tests during PGO profiling step with ... X-Git-Tag: v3.15.0a1~1283 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b3a826888ed3b598dc4bcdc6a48d5f6ae231f8d;p=thirdparty%2FPython%2Fcpython.git gh-135489: Show verbose output for failing tests during PGO profiling step with `--enable-optimizations` (#135512) --- diff --git a/Lib/test/libregrtest/single.py b/Lib/test/libregrtest/single.py index 57d7b649d2ef..958a915626ad 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 000000000000..2c9ecc518293 --- /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.