%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib64/python3.9/site-packages/numpy/ma/tests/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib64/python3.9/site-packages/numpy/ma/tests/__pycache__/test_deprecations.cpython-39.pyc

a

z[yc�
�@svdZddlZddlZddlmZddlmZddlm	Z	ddl
Z
ddlZGdd�d�ZGdd	�d	�Z
Gd
d�d�ZdS)z'Test deprecation and future warnings.

�N)�assert_warns)�assert_equal)�MaskedArrayFutureWarningc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�TestArgsortz	 gh-8701 cCs�t�d��|�}||�t�gd���|�}||�t�ddgddgg��|�}ttjjj||�}t|||dd��||dd�||dd�dS)N�)r��rr��Zaxis���)�np�array�viewr�maZcorerr)�self�argsort�clsZarr_0dZarr_1dZarr_2d�result�r�F/usr/lib64/python3.9/site-packages/numpy/ma/tests/test_deprecations.py�
_test_bases�zTestArgsort._test_basecCs|�tjjtj�S�N)rrrrZndarray�rrrr�test_function_ndarraysz!TestArgsort.test_function_ndarraycCs|�tjjtjj�Sr)rrrr�MaskedArrayrrrr�test_function_maskedarray"sz%TestArgsort.test_function_maskedarraycCs|�tjjjtjj�Sr)rrrrrrrrr�test_method%szTestArgsort.test_methodN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrrs
rc@s$eZdZdd�Zdd�Zdd�ZdS)�TestMinimumMaximumcCs tttjjtj�ddg��dS�Nrr)r�DeprecationWarningrr�minimumr
rrrr�test_minimum*szTestMinimumMaximum.test_minimumcCs tttjjtj�ddg��dSr")rr#rr�maximumr
rrrr�test_maximum-szTestMinimumMaximum.test_maximumcCs�tj�d�}|�dd�}tjjj}tjjj}tt||�}t	|||dd��tt||�}t	|||dd��||�}t	|||dd��t	|||dd��||�}t	|||dd��t	|||dd��dS)N�rrr
r)
rrZarangeZreshaper$�reducer&rrr)rZdata1dZdata2dZma_minZma_maxrrrr�test_axis_default0s

z$TestMinimumMaximum.test_axis_defaultN)rrrr%r'r*rrrrr!)sr!c@seZdZdd�ZdS)�TestFromtextfilecCsPt�t�d��}t�t��"tjj	j
|dd�}Wd�n1sB0YdS)Nz�
            A,B,C,D
            'string 1';1;1.0;'mixed column'
            'string 2';2;2.0;
            'string 3';3;3.0;123
            'string 4';4;4.0;3.14
            �;)Z	delimitor)�io�StringIO�textwrap�dedent�pytestZwarnsr#rrZmrecordsZfromtextfile)rZtextfilerrrr�test_fromtextfile_delimitorKs
�
z,TestFromtextfile.test_fromtextfile_delimitorN)rrrr2rrrrr+Jsr+)r r1ZnumpyrZ
numpy.testingrZnumpy.ma.testutilsrZ
numpy.ma.corerr-r/rr!r+rrrr�<module>s!

Zerion Mini Shell 1.0