Sindbad~EG File Manager
�
SԚg�> � �f � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlm
Z
ddlmZ ddlZddlZddlmZmZ ddlmZ ej j rd� Znd� Z G d � d
� � Z G d� d� � Z G d
� dee
j � � Z G d� dee
j � � Z G d� de
j � � Z G d� de
j � � Z G d� dej j � � Z! G d� de!e
j � � Z" G d� de!e
j � � Z# G d� d� � Z$ G d� de%� � Z& G d� d e%� � Z' G d!� d"e(� � Z) G d#� d$e(� � Z* G d%� d&� � Z+ G d'� d(e$e
j � � Z, G d)� d*e$e
j � � Z- G d+� d,e$e
j � � Z.e/d-k r e
j0 � � dS dS ).z�Unit tests for the bytes and bytearray types.
XXX This is a mess. Common tests should be unified with string_tests.py (and
the latter should be modernized).
� N)�
import_helper)�warnings_helper)�bigaddrspacetest�MAX_Py_ssize_t)�assert_python_failurec �F � � t j � � � � fd�� � }|S )Nc �~ �� t j dt f� � 5 �| i |��cd d d � � S # 1 swxY w Y d S �N� �r �check_warnings�BytesWarning)�args�kw�funcs ��,/usr/local/lib/python3.11/test/test_bytes.py�wrapperz%check_bytes_warnings.<locals>.wrapper s� �� � �/��\�0B�C�C�
)�
)��t�T�(�R�(�(�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)����
)�
)�
)�
)�
)�
)s �2�6�6)� functools�wraps)r r s ` r �check_bytes_warningsr s8 �� � ��� � � )� )� )� )�
� � )� �� c � � | S �N� )r s r r r $ s � ��r c � � e Zd Zdd�Zd� ZdS )� Indexabler c � � || _ d S r ��value��selfr s r �__init__zIndexable.__init__) �
� ���
�
�
r c � � | j S r r �r! s r � __index__zIndexable.__index__+ �
� ��z�r N)r )�__name__�
__module__�__qualname__r"