[issue31158] test_pty: test_basic() fails randomly on Travis CI

Cornelius Diekmann report at bugs.python.org
Thu Aug 10 05:28:59 EDT 2017


Cornelius Diekmann added the comment:

I observed the same issue, but the problem occurs mainly when reading data. In my proposed patch in issue29070, I use the existing pty._writen() to make sure all data is written. As Martin mentioned, reading is a problem. My patch proposes _os_timeout_read(), _os_readline(), _os_read_exactly(), _os_read_exhaust_exactly() to give fine-grained, deterministic control. Cheeky advertisement: Anybody cares to review issue29070 or cherry pick the pty._writen() and _os_read* parts? :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31158>
_______________________________________


More information about the Python-bugs-list mailing list