Message334433
> Possibly fixed with issue34537 ?
"LC_ALL=C ./python -We -m test -vuall -m test_strings test_gdb" still fails for me on Fedora 29.
======================================================================
FAIL: test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode strings
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vstinner/prog/python/master/Lib/test/test_gdb.py", line 380, in test_strings
check_repr('\u2620')
File "/home/vstinner/prog/python/master/Lib/test/test_gdb.py", line 372, in check_repr
self.assertGdbRepr(text)
File "/home/vstinner/prog/python/master/Lib/test/test_gdb.py", line 302, in assertGdbRepr
gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')')
File "/home/vstinner/prog/python/master/Lib/test/test_gdb.py", line 269, in get_gdb_repr
gdb_output = self.get_stack_trace(source, breakpoint=BREAKPOINT_FN,
File "/home/vstinner/prog/python/master/Lib/test/test_gdb.py", line 249, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ["Python Exception <class 'UnicodeEncodeEr[231 chars]): "] != []
First list contains 2 additional elements.
First extra element 0:
"Python Exception <class 'UnicodeEncodeError'> 'ascii' codec can't encode character '\\u2620' in position 1: ordinal not in range(128): "
+ []
- ["Python Exception <class 'UnicodeEncodeError'> 'ascii' codec can't encode "
- "character '\\u2620' in position 1: ordinal not in range(128): ",
- "Python Exception <class 'UnicodeEncodeError'> 'ascii' codec can't encode "
- "character '\\u2620' in position 1: ordinal not in range(128): "]
Note: "LC_ALL=C ./python -m test -m test_strings test_gdb" (simpler command) also fails. |
|
Date |
User |
Action |
Args |
2019-01-27 17:22:31 | vstinner | set | recipients:
+ vstinner, ncoghlan, serhiy.storchaka, xtreak |
2019-01-27 17:22:30 | vstinner | set | messageid: <1548609750.4.0.646844545092.issue32834@roundup.psfhosted.org> |
2019-01-27 17:22:30 | vstinner | link | issue32834 messages |
2019-01-27 17:22:30 | vstinner | create | |
|