File: //proc/self/root/opt/alt/python312/lib64/python3.12/test/__pycache__/test_io.cpython-312.opt-2.pyc
�
~h�e�� � �.
� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dlmZmZ d dlmZmZ d dlmZ d dlmZmZmZ d dlmZ d dlmZ d dlmZ d d lmZ d d
lm Z d dl!m"Z" d dl#Z#d dl$Z$d dl%Z& d dl'Z'd� Z( G d
� de'jR � Z*ejX xs ejZ j\ Z/d� Z0 ejb e2ed� d� Z3 G d� d� Z4 G d� d� Z5 G d� de5e$jl � Z7 G d� de5e&jl � Z8 G d� de5� Z9 G d� de9e$jl � Z: G d� d e9e&jl � Z; G d!� d"e9� Z< G d#� d$e<e$jl � Z= G d%� d&e<e&jl � Z> G d'� d(e9� Z? G d)� d*e?e$jl � Z@ G d+� d,e?e&jl � ZA G d-� d.e9� ZB G d/� d0eBe$jl � ZC G d1� d2eBe&jl � ZD G d3� d4� ZE G d5� d6eEe$j� � ZG G d7� d8eEe&j� � ZH G d9� d:� ZI G d;� d<eIe$j� � ZJ G d=� d>eIe&j� � ZK G d?� d@� ZL G dA� dBeLe$jl � ZM G dC� dDeLe&jl � ZN G dE� dFej� � ZP G dG� dHeP� ZQej� G dI� dJej� � � ZS G dK� dLeP� ZTej� G dM� dNej� � � ZU G dO� dP� ZV G dQ� dR� ZW G dS� dTej� eV� ZX G dU� dVeXeW� ZY G dW� dXeX� ZZ G dY� dZej� eV� Z[ G d[� d\e[eW� Z\ G d]� d^e[� Z] G d_� d`ej� � Z^ G da� dbe^� Z_ G dc� dde^� Z` G de� dfeXe[� Za G dg� dheaeW� Zb G di� djea� Zc G dk� dle#j� � Zedm� Zf G dn� doej� � Zg G dp� dqej� � Zh G dr� dse$j� � Zidt� Zj G du� dveh� Zk G dw� dxeh� Zl G dy� dzej� � Zm G d{� d|em� Zn G d}� d~em� Zo G d� d�ej� � Zp G d�� d�ep� Zq G d�� d�ep� Zr ej� ej� d�k( d�� G d�� d�ej� � � Zu G d�� d�eu� Zv G d�� d�eu� Zwd�� Zxeyd�k( r ej� � yy# e+$ r d� Z(Y ��hw xY w)�� N)�deque�UserList)�cycle�count)�support)�assert_python_ok�assert_python_failure�run_python_until_end)�
import_helper)� os_helper)�threading_helper)�warnings_helper)�skip_if_sanitizer)�FakePathc � � t | i |��}t � }t j |t |� � |t |� j
d� d d |S )N�B)�bytes�EmptyStruct�ctypes�resize�len�
memoryview�cast)�pos�kw�data�objs �3/opt/alt/python312/lib64/python3.12/test/test_io.py� bytesliker ; sK � �M��c� �R� ���m���
�
�c�3�t�9�%�'+�
�3����S�!�!�$��
� c � � e Zd Zy)r N��__name__�
__module__�__qualname__� r r r r B s � �r r c �@ � t j dt | i |��� S )N�b)�arrayr )r r s r r r 8 s � ��{�{�3��s� 1�b� 1�2�2r c �l � t t dd�� 5 } | j cd d d � S # 1 sw Y y xY w)N�r�latin-1��encoding)�open�__file__�_CHUNK_SIZE)�fs r �_default_chunk_sizer3 J s/ � �2�
�h��i� 0� �A��}�}�� � �s �*�3�alarmztest requires signal.alarm()c � � e Zd Zd� Zy)�BadIndexc � � ddz y �N� r r&