[Python-checkins] CVS: python/dist/src/Lib/test test_openpty.py,1.1,1.2 test_pty.py,1.2,1.3

Thomas Wouters python-dev@python.org
Wed, 19 Jul 2000 07:51:57 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13627/Lib/test

Modified Files:
	test_openpty.py test_pty.py 
Log Message:

Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P)




Index: test_openpty.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_openpty.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_openpty.py	2000/07/01 01:13:31	1.1
--- test_openpty.py	2000/07/19 14:51:54	1.2
***************
*** 13,21 ****
      raise ImportError, "No openpty() available."
  
! ## # Please uncomment these if os.isatty() is added.
! ## if not os.isatty(master):
! ##     raise TestFailed, "Master-end of pty is not a terminal."
! ## if not os.isatty(slave):
! ##     raise TestFailed, "Slave-end of pty is not a terminal."
  
  os.write(slave, 'Ping!')
--- 13,20 ----
      raise ImportError, "No openpty() available."
  
! if not os.isatty(master):
!     raise TestFailed, "Master-end of pty is not a terminal."
! if not os.isatty(slave):
!     raise TestFailed, "Slave-end of pty is not a terminal."
  
  os.write(slave, 'Ping!')

Index: test_pty.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pty.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_pty.py	2000/07/16 12:04:31	1.2
--- test_pty.py	2000/07/19 14:51:54	1.3
***************
*** 28,36 ****
      raise ImportError, "Pseudo-terminals (seemingly) not functional."
  
! ## # Please uncomment these if os.isatty() is added.
! ## if not os.isatty(master_fd):
! ##     raise TestFailed, "master_fd is not a tty"
! ## if not os.isatty(slave_fd):
! ##     raise TestFailed, "slave_fd is not a tty"
  
  debug("Writing to slave_fd")
--- 28,35 ----
      raise ImportError, "Pseudo-terminals (seemingly) not functional."
  
! if not os.isatty(master_fd):
!     raise TestFailed, "master_fd is not a tty"
! if not os.isatty(slave_fd):
!     raise TestFailed, "slave_fd is not a tty"
  
  debug("Writing to slave_fd")