Skip to content

[3.13] gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (GH-159916) - #160201

Open
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-88d922a-3.13
Open

miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-88d922a-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

test_strings() gets gdb.host_charset(), but fails if gdb writes
anything to stderr. For example, it fails if gdb logs the warning:

"/usr/bin/gdb: warning: Couldn't determine a path for the index
cache directory."

Even if stdout contains the expected encoding ("UTF-8").

Change test_gdb to only fail if stdout is empty, ignore stderr
otherwise to ignore gdb warnings.
(cherry picked from commit 88d922a)

Co-authored-by: Victor Stinner vstinner@python.org

…honGH-159916)

test_strings() gets gdb.host_charset(), but fails if gdb writes
anything to stderr. For example, it fails if gdb logs the warning:

    "/usr/bin/gdb: warning: Couldn't determine a path for the index
    cache directory."

Even if stdout contains the expected encoding ("UTF-8").

Change test_gdb to only fail if stdout is empty, ignore stderr
otherwise to ignore gdb warnings.
(cherry picked from commit 88d922a)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner

Copy link
Copy Markdown
Member

@Yhg1s: The 3.13 branch only accept security fixes. But the 3.13 branch is marked as "unreleasable" because test_gdb fails on a Tier-1 buildbot (AMD64 Debian root 3.13). Do you accept fixes to repair the 3.13 buildbots?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants