-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_gdb fails with LC_ALL=C #78718
Comments
On Python 3.7 and master, test_strings() of test_gdb fails if gdb uses Python 3.6 (before UTF-8 Mode and C locale coercion):
vstinner@apu$ LC_ALL=C ./python -m test -v test_gdb -m test_strings ====================================================================== Traceback (most recent call last):
File "/home/vstinner/prog/python/3.7/Lib/test/test_gdb.py", line 331, in test_strings
check_repr('\u2620')
File "/home/vstinner/prog/python/3.7/Lib/test/test_gdb.py", line 323, in check_repr
self.assertGdbRepr(text)
File "/home/vstinner/prog/python/3.7/Lib/test/test_gdb.py", line 271, in assertGdbRepr
% (gdb_repr, exp_repr, gdb_output)))
AssertionError: "'\\u2620'" != "'☠'"
- '\u2620'
+ '☠'
: "'\\u2620'" did not equal expected "'☠'"; full output was:
Breakpoint 1 at 0x52fc1b: file Python/bltinmodule.c, line 1216.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1". Breakpoint 1, builtin_id (self=, v='\u2620') at Python/bltinmodule.c:1216 ---------------------------------------------------------------------- FAILED (failures=1) == Tests result: FAILURE == 1 test failed: Total duration: 1 sec 422 ms |
I don't think that it's worth it to backport the change to Python 3.6 and older, since "LC_ALL=C ./python -m test test_gdb" already pass on 2.7 and 3.6. |
Thank you Elvis for the fix! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: