ports/devel/py-pexpect/patches/patch-tests_test_expect_py

13 lines
662 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: tests/test_expect.py
--- tests/test_expect.py.orig
+++ tests/test_expect.py
@@ -485,7 +485,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase)
2023-08-16 22:26:55 +00:00
def test_before_across_chunks(self):
# https://github.com/pexpect/pexpect/issues/478
child = pexpect.spawn(
- '''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | nl -n rz -w 5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
+ '''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | gnl -n rz -w 5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
2023-08-16 22:26:55 +00:00
searchwindowsize=128
)
child.expect(['PATTERN'])