Sindbad~EG File Manager
�
SԚ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 � � dS dS )� N)�
import_module�termios�openptyzneed 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 )N�wbr )� buffering)�moder
)�osr �fd�
addCleanup�close�enterContext�open�stream�tempfile�
TemporaryFile�fileno�bad_fd)�self� master_fd�tmps �./usr/local/lib/python3.11/test/test_termios.py�setUpzTestFunctions.setUp s� � ��Z�\�\�� �4�7������)�,�,�,��'�'��T�W�d�a�(H�(H�(H�I�I������� 6�D�A� N� N� N�O�O���j�j�l�l����� c �� � | � t j � � 5 } ||� d d d � � n# 1 swxY w Y | � |j j d |� � d S )Nr )�assertRaisesr �error�assertEqual� exception�args)r �errno�callabler"