Ñò
‘à"Ic           @   s‰   d  d k  Z  d  d k Z d  d k l Z l Z e e  d ƒ p e d ‚ n d e i f d „  ƒ  YZ d „  Z e	 d j o e ƒ  n d S(	   iÿÿÿÿN(   t   run_unittestt   TestSkippedt   openptys   No openpty() available.t   OpenptyTestc           B   s   e  Z d  „  Z RS(   c         C   sc   t  i ƒ  \ } } t  i | ƒ p |  i d ƒ n t  i | d ƒ |  i t  i | d ƒ d ƒ d  S(   Ns#   Slave-end of pty is not a terminal.s   Ping!i   (   t   osR   t   isattyt   failt   writet   assertEqualt   read(   t   selft   mastert   slave(    (    s.   /mit/python/lib/python2.6/test/test_openpty.pyt   test   s
    (   t   __name__t
   __module__R   (    (    (    s.   /mit/python/lib/python2.6/test/test_openpty.pyR   
   s   c           C   s   t  t ƒ d  S(   N(   R    R   (    (    (    s.   /mit/python/lib/python2.6/test/test_openpty.pyt	   test_main   s    t   __main__(
   R   t   unittestt   test.test_supportR    R   t   hasattrt   TestCaseR   R   R   (    (    (    s.   /mit/python/lib/python2.6/test/test_openpty.pyt   <module>   s   		