[Python-checkins] r54995 - python/trunk/Lib/test/test_pty.py (original) (raw)

neal.norwitz python-checkins at python.org
Fri Apr 27 08:45:37 CEST 2007


Author: neal.norwitz Date: Fri Apr 27 08:45:32 2007 New Revision: 54995

Modified: python/trunk/Lib/test/test_pty.py Log: This gets the test working on Solaris. It seems a little hokey to me, but the test passed on Linux and Solaris, hopefully other platforms too.

Modified: python/trunk/Lib/test/test_pty.py

--- python/trunk/Lib/test/test_pty.py (original) +++ python/trunk/Lib/test/test_pty.py Fri Apr 27 08:45:32 2007 @@ -1,3 +1,5 @@ +import errno +import fcntl import pty import os import sys @@ -40,6 +42,7 @@

Marginal testing of pty suite. Cannot do extensive 'do or fail' testing

because pty code is not too portable.

+# XXX(nnorwitz): these tests leak fds when there is an error. class PtyTest(unittest.TestCase): def setUp(self): # isatty() and close() can hang on some platforms. Set an alarm @@ -70,6 +73,22 @@

     self.assertTrue(os.isatty(slave_fd), 'slave_fd is not a tty')


More information about the Python-checkins mailing list