1 https://github.com/pexpect/pexpect/issues/766
3 --- pexpect-4.9/tests/test_performance.py.orig
4 +++ pexpect-4.9/tests/test_performance.py
6 print("100000 calls to faster_range:", (time.time() - start_time))
8 def test_large_stdout_stream(self):
9 - e = pexpect.spawn('openssl rand -base64 {}'.format(1024*1024*25), searchwindowsize=1000)
10 + e = pexpect.spawn('openssl rand -base64 {}'.format(1024*1024*25), searchwindowsize=1000, timeout=40)
11 resp = e.expect(['Password:', pexpect.EOF, pexpect.TIMEOUT])
12 assert resp == 1 # index 1 == EOF