python (3.11.7)
    e~U                     N   d Z ddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZ  G d d          Z G d de          Z
 G d d	e          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                  Zedk    r ej                     dS dS )zUnit 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 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 ZdS )AbstractMemoryTests   abcdefc                     | j         S N)source_bytesselfs    H/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_memoryview.py_sourcezAbstractMemoryTests._source   s          c                 :    t          d | j        | j        g          S r   )filterro_typerw_typer
   s    r   _typeszAbstractMemoryTests._types   s    dT\4<8999r   c                     || j                   }t          j        |          }|                     |          |                     d         t          d                     |                     d         t                     |                     d         t          d                     |                     d         t          d                     |                     d         t          d                     |                     t          fd           |                     t          fd           |                     t          fd	           |                     t          fd
           |                     t          fd           |                     t          fd           |                     t          fd
           d |                     t          j        |          |           d S )Nr      a      fic                       d         S )N    ms   r   <lambda>z=AbstractMemoryTests.check_getitem_with_type.<locals>.<lambda>)   s    ad r   c                       d         S )Nr   r   s   r   r   z=AbstractMemoryTests.check_getitem_with_type.<locals>.<lambda>*   s    ae r   c                  (     t           j                 S r   sysmaxsizer   s   r   r   z=AbstractMemoryTests.check_getitem_with_type.<locals>.<lambda>+   s
    an r   c                  *     t           j                  S r   r"