diff options
| author | Thomas Wouters <thomas@python.org> | 2006-04-25 13:53:23 (GMT) |
|---|---|---|
| committer | Thomas Wouters <thomas@python.org> | 2006-04-25 13:53:23 (GMT) |
| commit | 6dbff33be848ed875f3769be6b866438b099aa3a (patch) | |
| tree | 0ff979c8a9a9d1494dfc6b525c9f944ee142840d /Lib/test/test_pty.py | |
| parent | d798a181abd2b03ba5358d3528e5f4c78be74980 (diff) | |
| download | cpython-6dbff33be848ed875f3769be6b866438b099aa3a.zip cpython-6dbff33be848ed875f3769be6b866438b099aa3a.tar.gz cpython-6dbff33be848ed875f3769be6b866438b099aa3a.tar.bz2 | |
SF bug/patch #1433877: string parameter to ioctl not null terminated
The new char-array used in ioctl calls wasn't explicitly NUL-terminated;
quite probably the cause for the test_pty failures on Solaris that we
circumvented earlier. (I wasn't able to reproduce it with this patch, but it
has been somewhat elusive to start with.)
Diffstat (limited to 'Lib/test/test_pty.py')
| -rw-r--r-- | Lib/test/test_pty.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index 99e01b6..7b1f460 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -4,13 +4,6 @@ from test.test_support import verbose, TestFailed, TestSkipped TEST_STRING_1 = "I wish to buy a fish license.\n" TEST_STRING_2 = "For my pet fish, Eric.\n" -# Solaris (at least 2.9 and 2.10) seem to have a fickle isatty(). The first -# test below, testing the result of os.openpty() for tty-ness, sometimes -# (but not always) fails. The second isatty test, in the sub-process, always -# works. Allow that fickle first test to fail on these platforms, since it -# doesn't actually affect functionality. -fickle_isatty = ["sunos5"] - if verbose: def debug(msg): print msg @@ -54,7 +47,7 @@ def test_basic_pty(): # " An optional feature could not be imported " ... ? raise TestSkipped, "Pseudo-terminals (seemingly) not functional." - if not os.isatty(slave_fd) and sys.platform not in fickle_isatty: + if not os.isatty(slave_fd): raise TestFailed, "slave_fd is not a tty" debug("Writing to slave_fd") |
