python (3.12.0)
͑e* P 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 ej4 yy) N)supportztest module requires subprocessposixztests requires a posix system.c F e Zd Zd Zd Zd Z ddZd ZdZd Z d Z
d Zy
)TestFileIOSignalInterruptc d | _ y N)_processselfs H/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_file_eintr.pysetUpzTestFileIOSignalInterrupt.setUp s
c | j r7| j j | j j y y y # t $ r Y y w xY wr )r pollkillOSErrorr
s r tearDownz"TestFileIOSignalInterrupt.tearDown sK ==T]]//19
""$ :=
s A AAc d| j z S )zReturns 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'