[cli] Set default pexpect delaybeforesend to none on `expect_call` return

pull/2/head
Daniel Van Der Maden 5 years ago
parent 8924f6dec3
commit c5f9c11a9f
  1. 1
      pyhmy/cli.py

@ -300,6 +300,7 @@ def expect_call(command, timeout=60):
command_toks = command_toks[1:]
try:
proc = pexpect.spawn(f"{_binary_path}", command_toks, env=environment, timeout=timeout)
proc.delaybeforesend = None
except pexpect.ExceptionPexpect as err:
raise RuntimeError(f"Bad CLI args: `{command}`\n "
f"\tException: {err}") from err

Loading…
Cancel
Save