File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_io.cpython-312.opt-1.pyc
�
~h�e�� � �0
� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlmZmZ ddlmZmZ ddlmZ ddlmZmZmZ ddlmZ ddlmZ dd lmZ dd
lm Z ddlm!Z! ddl"m#Z# ddl$Z$ddl%Z%ddl&Z' ddl(Z(d
� Z) G d� de(jT � Z+ejZ xs e j\ j^ Z0d� Z1 e
jd e3ed� d� Z4 G d� d� Z5 G d� d� Z6 G d� de6e%jn � Z8 G d� de6e'jn � Z9 G d� de6� Z: G d� de:e%jn � Z; G d � d!e:e'jn � Z< G d"� d#e:� Z= G d$� d%e=e%jn � Z> G d&� d'e=e'jn � Z? G d(� d)e:� Z@ G d*� d+e@e%jn � ZA G d,� d-e@e'jn � ZB G d.� d/e:� ZC G d0� d1eCe%jn � ZD G d2� d3eCe'jn � ZE G d4� d5� ZF G d6� d7eFe%j� � ZH G d8� d9eFe'j� � ZI G d:� d;� ZJ G d<� d=eJe%j� � ZK G d>� d?eJe'j� � ZL G d@� dA� ZM G dB� dCeMe%jn � ZN G dD� dEeMe'jn � ZO G dF� dGe
j� � ZQ G dH� dIeQ� ZRej� G dJ� dKe
j� � � ZT G dL� dMeQ� ZUej� G dN� dOe
j� � � ZV G dP� dQ� ZW G dR� dS� ZX G dT� dUe
j� eW� ZY G dV� dWeYeX� ZZ G dX� dYeY� Z[ G dZ� d[e
j� eW� Z\ G d\� d]e\eX� Z] G d^� d_e\� Z^ G d`� dae
j� � Z_ G db� dce_� Z` G dd� dee_� Za G df� dgeYe\� Zb G dh� diebeX� Zc G dj� dkeb� Zd G dl� dme$j� � Zfdn� Zg G do� dpe
j� � Zh G dq� dre
j� � Zi G ds� dte%j� � Zjdu� Zk G dv� dwei� Zl G dx� dyei� Zm G dz� d{e
j� � Zn G d|� d}en� Zo G d~� den� Zp G d�� d�e
j� � Zq G d�� d�eq� Zr G d�� d�eq� Zs e
j� ej� d�k( d�� G d�� d�e
j� � � Zv G d�� d�ev� Zw G d�� d�ev� Zxd�� Zyezd�k( r e
j� � yy# e,$ r d� Z)Y ��hw xY w)�zUnit tests for the io module.� 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� dd |S )z?Create a bytes-like object having no string or sequence methods�BN)�bytes�EmptyStruct�ctypes�resize�len�
memoryview�cast)�pos�kw�data�objs �3/opt/alt/python312/lib64/python3.12/test/test_io.py� bytesliker ; sH � ��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 �j � t t dd�� 5 } | j cddd� S # 1 sw Y yxY w)z(Get the default TextIOWrapper chunk size�r�latin-1��encodingN)�open�__file__�_CHUNK_SIZE)�fs r �_default_chunk_sizer3 J s, � �
�h��i� 0� �A��}�}�� � �s �)�2�alarmztest requires signal.alarm()c � � e Zd Zd� Zy)�BadIndexc � � ddz y �N� r r&