mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 10:23:32 +01:00
test.expect(): Use Connection.Flags.ReadOnlyPrintable
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
368d81cb3f
commit
069e1dee1a
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ async def expect(conn, cmd=None, regex=None, subject=None, act_timeout=0.1, tota
|
|||
if subject == None:
|
||||
subject = ">" + regex + "<"
|
||||
while True:
|
||||
flags = Connection.Flags.ReadStripNewline|Connection.Flags.ReadDecodeToString
|
||||
flags = Connection.Flags.ReadStripNewline|Connection.Flags.ReadDecodeToString|Connection.Flags.ReadOnlyPrintable
|
||||
timeout = act_timeout
|
||||
now = time.time()
|
||||
if deadline is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue