Skip to content

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

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

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

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 [email protected]

…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 <[email protected]>
@vstinner
vstinner enabled auto-merge (squash) October 20, 2026 18:49
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Oct 20, 2026
@vstinner
vstinner merged commit bff122b into python:3.14 Oct 20, 2026
53 checks passed
@miss-islington
miss-islington deleted the backport-88d922a-3.14 branch October 20, 2026 20:51
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