[ADD] reproduce script for #3

This commit is contained in:
Benedek Racz 2019-11-14 16:05:54 +01:00
parent c1e81b3a69
commit ec335b6418

22
issues/i03_wait_on_eof.py Normal file
View File

@ -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)