Repository navigation
gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print - #159916
Conversation
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.
|
!buildbot AMD64 Debian root PR |
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit a5195b5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F159916%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
|
Good: the test passed on AMD64 Debian root PR! test_external_inspection failed on this build, but it seems to be a random failure, and it's unrelated to this change: |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
GH-159939 is a backport of this pull request to the 3.15 branch. |
|
GH-159940 is a backport of this pull request to the 3.14 branch. |
…-159916) (#159939) gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (GH-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>
…-159916) (#159940) gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (GH-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>
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
GH-160201 is a backport of this pull request to the 3.13 branch. |
test_strings() gets gdb.host_charset() but fails if gdb writes anything to stderr. For example, it fails if gdb logs the warning:
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.