New submission from R. David Murray:

See issue 11390 for a discussion, but briefly: there is a bug in the readline 
library that causes it, on some systems, to emit a control sequence on stdout 
when readline is first initialized and TERM is set to xterm.  The bug can be 
avoided by setting TERM='', and since assert_python is often used to test 
output, the bogus characters can cause tests to fail on just some systems.  
_assert_python should therefore set TERM='' unless the TERM environment 
variable is passed explicitly by the caller.

While this issue probably has minimal impact on the earlier python versions 
(where only doctest is likely to trigger this bug, because it calls pdb which 
calls readline), on 3.4 readline is always initialized, and therefore the bug 
is more likely to cause unexpected test failures.

----------
messages: 191856
nosy: r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: script_helper._asert_python should set TERM='' by default.
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18300>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to