]> granicus.if.org Git - python/commit
bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483)
authorElvis Pranskevichus <elvis@magic.io>
Sat, 22 Sep 2018 01:13:16 +0000 (21:13 -0400)
committerVictor Stinner <vstinner@redhat.com>
Sat, 22 Sep 2018 01:13:16 +0000 (18:13 -0700)
commit7279b5125e7c5d84a473d250b27d353cb7f6628e
tree7efa3a9e937f033c1dc3e3a06e7be5006d29ba39
parentd64ee1a5ba2007ae5fe085dd3495013d940a51bb
bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483)

We cannot simply call locale.getpreferredencoding() here,
as GDB might have been linked against a different version
of Python with a different encoding and coercion policy
with respect to PEP 538 and PEP 540.

Thanks to Victor Stinner for a hint on how to fix this.
Lib/test/test_gdb.py
Misc/NEWS.d/next/Tests/2018-09-21-17-33-41.bpo-34537.GImYtZ.rst [new file with mode: 0644]