This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_builtin assumes LANG=C
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded
View: 13886
Assigned To: Nosy List: doko, r.david.murray
Priority: normal Keywords:

Created on 2013-04-16 11:23 by doko, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg187072 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2013-04-16 11:23
I'm not sure about this one ... but it fails with an utf8 locale which happended to be set as the default, run from the installed location.

======================================================================
FAIL: test_input_tty_non_ascii (test.test_builtin.BuiltinTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tmp/lib/python3.4/test/test_builtin.py", line 1176, in test_input_tty_non_ascii
    self.check_input_tty("prompt\xe9", b"quux\xe9", "utf-8")
  File "/home/tmp/lib/python3.4/test/test_builtin.py", line 1167, in check_input_tty
    self.assertEqual(input_result, expected)
AssertionError: 'quux' != 'quux\udce9'
- quux
+ quux\udce9
?     +


======================================================================
FAIL: test_input_tty_non_ascii_unicode_errors (test.test_builtin.BuiltinTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tmp/lib/python3.4/test/test_builtin.py", line 1180, in test_input_tty_non_ascii_unicode_errors
    self.check_input_tty("prompt\xe9", b"quux\xe9", "ascii")
  File "/home/tmp/lib/python3.4/test/test_builtin.py", line 1167, in check_input_tty
    self.assertEqual(input_result, expected)
AssertionError: 'quux' != 'quux\udce9'
- quux
+ quux\udce9
?     +
msg187092 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-04-16 15:20
Based on the test failure this may be the same as #13886 and/or #17734.
History
Date User Action Args
2022-04-11 14:57:44adminsetgithub: 61955
2014-07-05 22:56:55ned.deilysetstatus: open -> closed
superseder: test_builtin.PtyTests fail on non-ASCII characters if the readline module is loaded
resolution: duplicate
stage: needs patch -> resolved
2014-07-05 21:01:18BreamoreBoysettype: behavior
versions: + Python 3.5, - Python 3.3
2013-04-16 15:20:37r.david.murraysetnosy: + r.david.murray
messages: + msg187092
2013-04-16 11:23:49dokolinkissue17750 dependencies
2013-04-16 11:23:32dokocreate