Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_file_eintr.cpython-311.pyc |
�
�Ke�* � �8 � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ ej s ej
d� � �d dlZd dlZ ej
e j dk d� � G d� d� � � � Z G d� d eej � � Z G d
� deej � � Z G d� d
e� � Z G d� deej � � Z G d� deej � � Z G d� de� � Z G d� deej � � Z G d� deej � � Zedk r ej � � dS dS )� N)�supportztest module requires subprocess�posixztests requires a posix system.c �H � e Zd Zd� Zd� Zd� Z d
d�Zd� ZdZd � Z d
� Z
d� ZdS )�TestFileIOSignalInterruptc � � d | _ d S �N)�_process��selfs �>/usr/local/apps/python3/lib/python3.11/test/test_file_eintr.py�setUpzTestFileIOSignalInterrupt.setUp s
� ���
�
�
� c � � | j rF| j � � � �/ | j � � � d S # t $ r Y d S w xY wd S d S r )r �poll�kill�OSErrorr
s r �tearDownz"TestFileIOSignalInterrupt.tearDown sp � ��=� �T�]�/�/�1�1�9�
��
�"�"�$�$�$�$�$���
�
�
����
���� � �9�9s �= �
A�
Ac � � d| j z S )z�Returns the infile = ... line of code for the reader process.
subclasseses should override this to test different IO objects.
z=import %s as io ;infile = io.FileIO(sys.stdin.fileno(), "rb")��modnamer
s r �_generate_infile_setup_codez5TestFileIOSignalInterrupt._generate_infile_setup_code'