File: //opt/cppython/lib/python3.8/test/__pycache__/test_bytes.cpython-38.pyc
U
.D�g� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
ZddlZddl
Zddl
mZmZ ejjr�dd� Zndd� ZG dd� d�ZG d d
� d
�ZG dd� dee j�ZG d
d� dee j�ZG dd� de j�ZG dd� de j�ZG dd� dejj�ZG dd� dee j�ZG dd� dee j�ZG dd� d�ZG dd� de �Z!G dd� de"�Z#G dd � d e"�Z$G d!d"� d"ee j�Z%G d#d$� d$ee j�Z&e'd%k�r�e �(� 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)�bigaddrspacetest�MAX_Py_ssize_tc s t �� �� fdd��}|S )Nc
s2 t j�dtf�� � | |�W 5 Q R � S Q R X d S �N� ��test�supportZcheck_warnings�BytesWarning)�args�kw��func� �./opt/cppython/lib/python3.8/test/test_bytes.py�wrapper s z%check_bytes_warnings.<locals>.wrapper)� functools�wraps)r
r r r r �check_bytes_warnings s r c C s | S �Nr r r r r r s c @ s e Zd Zddd�Zdd� ZdS )� Indexabler c C s
|| _ d S r ��value)�selfr r r r �__init__% s zIndexable.__init__c C s | j S r r �r r r r � __index__'