Skip to content

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

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-88d922a-3.15
Oct 20, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-88d922a-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 20, 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>
@bedevere-app bedevere-app Bot added awaiting review tests Tests in the Lib/test dir labels Oct 20, 2026
@vstinner
vstinner enabled auto-merge (squash) October 20, 2026 18:49
@vstinner
vstinner merged commit fccd7be into python:3.15 Oct 20, 2026
57 checks passed
@miss-islington
miss-islington deleted the backport-88d922a-3.15 branch October 20, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants