You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_gdb: test_strings() fails if gdb logs a warning #159914
ERROR: test_strings (test.test_gdb.test_pretty_print.PrettyPrintTests.test_strings)
Verify the pretty-printing of unicode strings
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gdb/test_pretty_print.py", line 129, in test_strings
raise RuntimeError(
...<2 lines>...
f'stderr={stderr!r}')
RuntimeError: unable to determine the host charset of gdb
stdout='UTF-8\n'
stderr="/usr/bin/gdb: warning: Couldn't determine a path for the index cache directory.\n"
I propose to ignore stderr if stdout is non-empty. I'm working on a PR for that.
Activity
pythongh-159914: Ignore gdb stderr in test_gdb.test_pretty_print
gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (#159916)
[3.15] gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (GH…
[3.14] gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (GH…
encukou commentedon Oct 21, 2026
Thank you!