summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2014-06-24 21:27:07 +0000
committerJeff Quast <contact@jeffquast.com>2014-06-24 21:27:07 +0000
commit995f9daf88387523129577048a6ada3de5fecfa1 (patch)
treef2bb950191efe6ebd601addbd8af181f8671814d
parent91d17a7192fe80879474587d7f1b7610d31bf782 (diff)
downloadpexpect-995f9daf88387523129577048a6ada3de5fecfa1.tar.gz
Use const child._VINTR instead of '3'
-rwxr-xr-xtests/test_ctrl_chars.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ctrl_chars.py b/tests/test_ctrl_chars.py
index d84f01b..7c9c372 100755
--- a/tests/test_ctrl_chars.py
+++ b/tests/test_ctrl_chars.py
@@ -54,7 +54,7 @@ class TestCtrlChars(PexpectTestCase.PexpectTestCase):
child = pexpect.spawn('python getch.py', echo=False, timeout=5)
child.expect('READY')
child.sendintr()
- child.expect('3<STOP>')
+ child.expect(str(child._VINTR) + '<STOP>')
child.send(byte(0))
child.expect('0<STOP>')