You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Checking is stdout/stderr stream terminal causes exception if stream's buffer is detached #2003
If the .buffer of an io module based stream was detached, the stream.isatty() method called in utils.misc.isatty() will raise an exception. #1948 fixes it.
changed the title [-]check for detached stream buffer in utils.misc.isatty()[/-][+]Checking is stdout/stderr stream terminal causes exception if stream's buffer is detached[/+]on May 26, 2015
Actually using io based streams as stdout/stderr in Python 2 with Robot Framework doesn't seem to be possible. The reason is that these streams only accept Unicode or bytes and Robot's output contains both. This is worth fixing to ease porting to Python 3, though.
Activity
[-]check for detached stream buffer in utils.misc.isatty()[/-][+]Checking is stdout/stderr stream terminal causes exception if stream's buffer is detached[/+]pekkaklarck commentedon May 26, 2015
The problem can demonstrated like this on Python 2.7:
Actually using
iobased streams as stdout/stderr in Python 2 with Robot Framework doesn't seem to be possible. The reason is that these streams only accept Unicode or bytes and Robot's output contains both. This is worth fixing to ease porting to Python 3, though.pekkaklarck commentedon May 26, 2015
PR #1948 was merged. This issue is done.
IronPython utest fixes related to isatty() w/ detached streams (#2003)