diff options
author | dluyer <53582923+dluyer@users.noreply.github.com> | 2020-01-15 10:16:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 10:16:27 -0800 |
commit | e21bae1d2b5a4740a08529862cbe91c0e8738e56 (patch) | |
tree | 85ac95fd3ff58f00df258f234e463ea0e8f4bb30 | |
parent | f16add752b2b73628fbcf9efa7e6d9e8ff60f51b (diff) | |
download | pexpect-git-e21bae1d2b5a4740a08529862cbe91c0e8738e56.tar.gz |
Accumulate async data correctly after future done
-rw-r--r-- | pexpect/_async.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pexpect/_async.py b/pexpect/_async.py index 1ecbe81..dfbfeef 100644 --- a/pexpect/_async.py +++ b/pexpect/_async.py @@ -71,6 +71,7 @@ class PatternWaiter(asyncio.Protocol): spawn._log(s, 'read') if self.fut.done(): + spawn._before.write(s) spawn._buffer.write(s) return |