python/pyproject_installer: update to 0.5.5
[oi-userland.git] / components / python / pexpect / patches / 03-test-test_large_stdout_stream.patch
blobc6427b7e5b89ae7c6d6875114b4893c027e8cb10
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
5 @@ -103,7 +103,7 @@
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