Sindbad~EG File Manager
�
'Μg�+ � � � 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 � yy)� N)�
import_module�termios�openptyzneed os.openpty()c �x � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zy)�
TestFunctionsc �J � t j � \ }| _ | j t j |� | j t
| j dd�� � | _ | j t j dd�� � }|j � | _ y )N�wbr )� buffering)�moder
)�osr �fd�
addCleanup�close�enterContext�open�stream�tempfile�
TemporaryFile�fileno�bad_fd)�self� master_fd�tmps �./usr/local/lib/python3.12/test/test_termios.py�setUpzTestFunctions.setUp so � ��Z�Z�\�� �4�7�������)�,��'�'��T�W�W�d�a�(H�I������� 6� 6�D�A� N�O���j�j�l��� c �� � | j t j � 5 } ||� d d d � | j j j
d |� y # 1 sw Y �3xY w)Nr )�assertRaisesr �error�assertEqual� exception�args)r �errno�callabler"