ó
wŰjc           @   s   d  d l  Z  d  d l Z d  d l m Z e e  d  sF e j d  n  d e j f d     YZ d   Z e	 d k r~ e   n  d S(	   i˙˙˙˙N(   t   run_unittestt   openptys   No openpty() available.t   OpenptyTestc           B   s   e  Z d    Z RS(   c         C   s   t  j   \ } } |  j t  j |  |  j t  j |  t  j |  sW |  j d  n  t  j | d  |  j t  j | d  d  d  S(   Ns#   Slave-end of pty is not a terminal.s   Ping!i   (	   t   osR   t
   addCleanupt   closet   isattyt   failt   writet   assertEqualt   read(   t   selft   mastert   slave(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_openpty.pyt   test   s    (   t   __name__t
   __module__R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_openpty.pyR   
   s   c           C   s   t  t  d  S(   N(   R    R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_openpty.pyt	   test_main   s    t   __main__(
   R   t   unittestt   test.test_supportR    t   hasattrt   SkipTestt   TestCaseR   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_openpty.pyt   <module>   s   	