Sindbad~EG File Manager
�
'Μg�X � �` � d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlmZ G d� d� Z
G d� d� Z G d� d e� Z G d
� de� Z G d� d
� Z G d� d� Z G d� d� Z G d� dej( ee� Z G d� dej( ee� Z G d� dej( ee� Z G d� dej( ee� Z G d� dej( ee� Z G d� dej( ee� Z G d� dej( � Zed k( r ej: � yy)!z�Unit tests for the memoryview
Some tests are in test_bytes. Many tests that require _testbuffer.ndarray
are in test_buffer.
� N)�
import_helperc � � e Zd Zy)�MyObjectN��__name__�
__module__�__qualname__� � �1/usr/local/lib/python3.12/test/test_memoryview.pyr r s � �r r c �� � e Zd ZdZed� � Zed� � Zd� Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)�AbstractMemoryTests� abcdefc � � | j S �N)�source_bytes��selfs r �_sourcezAbstractMemoryTests._source s � �� � � r c �F � t d | j | j g� S r )�filter�ro_type�rw_typer s r �_typeszAbstractMemoryTests._types s � ��d�T�\�\�4�<�<�8�9�9r c �D �� || j � }t j |� }| j |� �| j �d t d� � | j
�d t � | j �d t d� � | j �d t d� � | j �d t d� � | j t �fd�� | j t �fd�� | j t �fd �� | j t �fd
�� | j t �fd�� | j t �fd�� | j t �fd
�� d �| j t j |� |� y )Nr � a� � f���i����c � �� � d S )N� r
��ms �r �<lambda>z=AbstractMemoryTests.check_getitem_with_type.<locals>.<lambda>. s �� �a��dr c � �� � d S )N���r
r"