?????????? ????????? - ??????????????? - /usr/lib64/python3.9/site-packages/numpy/core/tests/__pycache__/test_arraymethod.cpython-39.pyc
???????
a z[yc� � @ s� d Z ddlmZ ddlZddlZddlmZ ddlZddlZ ddl mZ G dd� d�Z G dd � d �Zejjejd k dd�ej�d e je je je je jg�G dd� d���Zejjejd kdd�dd�dd��ZdS )z� This file tests the generic aspects of ArrayMethod. At the time of writing this is private API, but when added, public API may be added here. � )�annotationsN)�Any)�_get_castingimplc @ sd e Zd Zeee�d��ee�d���Zej � ddddde�d�dffe�d�d ffg�d d� �Zd S )�TestResolveDescriptors�d�f�args�T�N�)NNN)�NNTNc C s: t �t�� | jj|� W d � n1 s,0 Y d S r )�pytest�raises� TypeError�methodZ_resolve_descriptors)�selfr � r �G/usr/lib64/python3.9/site-packages/numpy/core/tests/test_arraymethod.py�test_invalid_arguments s z-TestResolveDescriptors.test_invalid_arguments)�__name__� __module__�__qualname__�get_castingimpl�type�np�dtyper r �mark�parametrizer r r r r r s �r c @ s� e Zd Zeee�d��ee�d���Zej � ddgdefdefdefdefe�d �e�d �ffefej d d d�ej d dd�ffefej d dd�ej d dd�ffefej d dd�ej ddd�ffefejddd�ejddd�ffefg �dd� �ZdS )�TestSimpleStridedCallr r r �errorr )r r r � z>d)r z<f)� r! � s x00 x00 x00 x00 x00 x00s x00 x00 x00c C s: t �|�� | jj|� W d � n1 s,0 Y d S r )r r r Z_simple_strided_call)r r r r r r r - s z,TestSimpleStridedCall.test_invalid_argumentsN)r r r r r r r r r r r r ZarangeZones� ValueErrorZ frombufferr r r r r r &