diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-02-21 00:29:25 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-02-21 00:29:25 +0000 |
commit | fc627046b8a49518d926e9818be7467fd48eb666 (patch) | |
tree | a644d6a8b85486ffd0dc02c8f99dc8fac46eae57 | |
parent | f027b73d6103364b5ff9e9dda6f8c0510ca5c3b1 (diff) | |
download | pexpect-fc627046b8a49518d926e9818be7467fd48eb666.tar.gz |
I slowed down the default delaybeforesend in a test.
this is more reliable on slow systems.
I might make this the default for pexpect.py
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@457 656d521f-e311-0410-88e0-e7920216d269
-rwxr-xr-x | pexpect/tests/test_ctrl_chars.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pexpect/tests/test_ctrl_chars.py b/pexpect/tests/test_ctrl_chars.py index 21eb626..24698fd 100755 --- a/pexpect/tests/test_ctrl_chars.py +++ b/pexpect/tests/test_ctrl_chars.py @@ -13,8 +13,7 @@ class TestCtrlChars(PexpectTestCase.PexpectTestCase): to a child process.""" child = pexpect.spawn('python getch.py') - # Most Linux machines don't like this to be below 0.03. - child.delaybeforesend = 0.03 + #child.delaybeforesend = 0.1 for i in range(256): child.send(chr(i)) child.expect ('%d\r\n' % i) @@ -26,8 +25,7 @@ class TestCtrlChars(PexpectTestCase.PexpectTestCase): """ child = pexpect.spawn('python getch.py') - # Most Linux machines don't like this to be below 0.03. - child.delaybeforesend = 0.03 + #child.delaybeforesend = 0.1 for i in 'abcdefghijklmnopqrstuvwxyz': child.sendcontrol(i) child.expect ('[0-9]+\r\n') |