B
    18™\X  ã               @   sJ   d dl Z d dlZee dƒs$e d¡‚G dd„ dejƒZedkrFe ¡  dS )é    NÚopenptyzos.openpty() not available.c               @   s   e Zd Zdd„ ZdS )ÚOpenptyTestc             C   s`   t  ¡ \}}|  t j|¡ |  t j|¡ t  |¡s<|  d¡ t  |d¡ |  t  |d¡d¡ d S )Nz#Slave-end of pty is not a terminal.s   Ping!i   )	Úosr   Ú
addCleanupÚcloseÚisattyÚfailÚwriteÚassertEqualÚread)ÚselfÚmasterÚslave© r   úU/oak/stanford/groups/akundaje/marinovg/programs/Python-3.7.3/Lib/test/test_openpty.pyÚtest
   s    

zOpenptyTest.testN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   	   s   r   Ú__main__)r   ÚunittestÚhasattrÚSkipTestÚTestCaser   r   Úmainr   r   r   r   Ú<module>   s
   

