From ec335b6418c11c37b46111006ae4deb493d64935 Mon Sep 17 00:00:00 2001 From: Benedek Racz Date: Thu, 14 Nov 2019 16:05:54 +0100 Subject: [PATCH] [ADD] reproduce script for #3 --- issues/i03_wait_on_eof.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 issues/i03_wait_on_eof.py diff --git a/issues/i03_wait_on_eof.py b/issues/i03_wait_on_eof.py new file mode 100644 index 0000000..c2fa4e0 --- /dev/null +++ b/issues/i03_wait_on_eof.py @@ -0,0 +1,22 @@ +import wexpect +import time + +p = wexpect.spawn('uname') +time.sleep(0.5) +p.expect(wexpect.EOF) +print(p.before) + +p = wexpect.spawn('uname') +time.sleep(0.8) +p.expect(wexpect.EOF) +print(p.before) + +p = wexpect.spawn('uname') +time.sleep(1.1) +p.expect(wexpect.EOF) +print(p.before) + +p = wexpect.spawn('uname') +time.sleep(1.5) +p.expect(wexpect.EOF) +print(p.before) \ No newline at end of file