python (3.11.7)
    e+                        d dl Z d dlZd dlZd dlZd dlZd dlmZ  ed          Z ej         e	ed          d           G d dej
                              Z G d d	ej
                  Ze
d
k    r ej                     dS dS )    N)
import_moduletermiosopenptyzneed os.openpty()c                   z    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Z
d Zd
 Zd Zd Zd Zd Zd ZdS )
TestFunctionsc                 ^   t          j                    \  }| _        |                     t           j        |           |                     t
          | j        dd                    | _        |                     t          j	        dd                    }|
                                | _        d S )Nwbr   )	buffering)moder
   )osr   fd
addCleanupcloseenterContextopenstreamtempfile
TemporaryFilefilenobad_fd)self	master_fdtmps      E/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_termios.pysetUpzTestFunctions.setUp   s    Z\\	47),,,''TWda(H(H(HII 6DA N N NOOjjll    c                     |                      t          j                  5 } ||  d d d            n# 1 swxY w Y   |                     |j        j        d         |           d S )Nr   )assertRaisesr   errorassertEqual	exceptionargs)r   errnocallabler"