[FIX] try to fix: appveyor fails

This commit is contained in:
Benedek Racz 2020-01-09 16:36:47 +01:00
parent e000ab026f
commit 6de82c8244

View File

@ -1070,15 +1070,13 @@ class spawn_windows ():
self.match_index = index self.match_index = index
return self.match_index return self.match_index
# No match at this point # No match at this point
if timeout is not None and timeout < 0: if timeout is not None and end_time < time.time():
raise TIMEOUT ('Timeout exceeded in expect_any().') raise TIMEOUT ('Timeout exceeded in expect_any().')
# Still have time left, so read more data # Still have time left, so read more data
c = self.read_nonblocking(self.maxread) c = self.read_nonblocking(self.maxread)
freshlen = len(c) freshlen = len(c)
time.sleep (0.01) time.sleep (0.01)
incoming += c incoming += c
if timeout is not None:
timeout = end_time - time.time()
except EOF as e: except EOF as e:
self.buffer = '' self.buffer = ''
self.before = incoming self.before = incoming
@ -1534,6 +1532,7 @@ class Wtty:
try: try:
self.switchTo() self.switchTo()
time.sleep(.01)
if self.__currentReadCo.Y > maxconsoleY: if self.__currentReadCo.Y > maxconsoleY:
time.sleep(.2) time.sleep(.2)