summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pexpect/__init__.py7
-rwxr-xr-xtests/test_ctrl_chars.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py
index b0800d8..30c6764 100644
--- a/pexpect/__init__.py
+++ b/pexpect/__init__.py
@@ -786,9 +786,10 @@ class spawn(object):
'''This returns True if the file descriptor is open and connected to a
tty(-like) device, else False.
- On SRV4-style platforms implementing streams, the child pty does not
- appear as a terminal device. This means methods such as setecho(),
- setwinsize(), getwinsize() may raise an IOError. '''
+ On SVR4-style platforms implementing streams, such as SunOS and HP-UX,
+ the child pty may not appear as a terminal device. This means
+ methods such as setecho(), setwinsize(), getwinsize() may raise an
+ IOError. '''
return os.isatty(self.child_fd)
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>')