Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
numpy
/
ma
/
tests
/
__pycache__
/
File Content:
test_deprecations.cpython-37.pyc
B <�Fdx � @ s~ d Z ddlmZmZmZ ddlZddlmZm Z m Z ddlmZ ddl mZ G dd� de�ZG d d � d e�Zedkrze � dS )z'Test deprecation and future warnings. � )�division�absolute_import�print_functionN)�TestCase�run_module_suite�assert_warns)�assert_equal)�MaskedArrayFutureWarningc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )�TestArgsortz gh-8701 c C s� t �d��|�}||� t �dddg��|�}||� t �ddgddgg��|�}tt jjj||�}t|||d d�� ||d d� ||dd� d S )N� � � � )�axis���)�np�arrayZviewr �maZcorer r )�self�argsort�clsZarr_0dZarr_1dZarr_2d�result� r �S/opt/alt/python37/lib64/python3.7/site-packages/numpy/ma/tests/test_deprecations.py� _test_base s zTestArgsort._test_basec C s | � tjjtj�S )N)r r r r Zndarray)r r r r �test_function_ndarray s z!TestArgsort.test_function_ndarrayc C s | � tjjtjj�S )N)r r r r �MaskedArray)r r r r �test_function_maskedarray! s z%TestArgsort.test_function_maskedarrayc C s | � tjjjtjj�S )N)r r r r r )r r r r �test_method$ s zTestArgsort.test_methodN)�__name__� __module__�__qualname__�__doc__r r r r r r r r r s r c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�TestMinimumMaximumc C s t ttjjtj�ddg�� d S )Nr r )r �DeprecationWarningr r �minimumr )r r r r �test_minimum) s zTestMinimumMaximum.test_minimumc C s t ttjjtj�ddg�� d S )Nr r )r r$ r r �maximumr )r r r r �test_maximum, s zTestMinimumMaximum.test_maximumc C s� t j�d�}|�dd�}t jjj}t jjj}tt||�}t |||d d�� tt||�}t |||d d�� ||�}t |||d d�� t |||dd�� ||�}t |||d d�� t |||dd�� d S )N� r r )r r ) r r ZarangeZreshaper% �reducer'