mirror of
https://github.com/clearml/wexpect-venv
synced 2025-01-31 02:46:59 +00:00
[ADD] reproduce script for #3
This commit is contained in:
parent
c1e81b3a69
commit
ec335b6418
22
issues/i03_wait_on_eof.py
Normal file
22
issues/i03_wait_on_eof.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user