관리-도구
편집 파일: test_regression.cpython-37.pyc
B ��Fd;= � @ s� d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlmZ d dl mZ d dlmZ d dlZd dlmZmZmZmZmZmZmZmZmZmZmZmZ d dl m!Z!m"Z" d dl#m$Z$m%Z%m&Z& d Z'G d d� de�Z(e)dkr�e� dS ) � )�division�absolute_import�print_functionN)�path)�BytesIO)�chain)�run_module_suite�TestCase�assert_�assert_equal�IS_PYPY�assert_almost_equal�assert_array_equal�assert_array_almost_equal� assert_raises�assert_warns�dec�suppress_warnings)�_assert_valid_refcount�HAS_REFCOUNT)�asbytes� asunicode�long� c @ s e Zd Zefdd�Zefdd�Zefdd�Zefdd�Zefd d �Zefdd�Z efd d�Z efdd�Zefdd�Zefdd�Z efdd�Zefdd�Zefdd�Zefdd�Zefdd�Zefdd �Zefd!d"�Zefd#d$�Zefd%d&�Zefd'd(�Zefd)d*�Ze�ejd+ d,k�p2ejd-k�o2e�� d+ d.kd/�efd0d1��Zefd2d3�Z efd4d5�Z!efd6d7�Z"efd8d9�Z#efd:d;�Z$efd<d=�Z%efd>d?�Z&efd@dA�Z'efdBdC�Z(efdDdE�Z)dFdG� Z*efdHdI�Z+efdJdK�Z,efdLdM�Z-efdNdO�Z.efdPdQ�Z/efdRdS�Z0dTdU� Z1efdVdW�Z2efdXdY�Z3efdZd[�Z4efd\d]�Z5efd^d_�Z6efd`da�Z7efdbdc�Z8efddde�Z9efdfdg�Z:dhdi� Z;djdk� Z<efdldm�Z=efdndo�Z>efdpdq�Z?efdrds�Z@efdtdu�ZAefdvdw�ZBefdxdy�ZCefdzd{�ZDefd|d}�ZEefd~d�ZFefd�d��ZGefd�d��ZHefd�d��ZIefd�d��ZJefd�d��ZKefd�d��ZLefd�d��ZMefd�d��ZNefd�d��ZOefd�d��ZPefd�d��ZQefd�d��ZRefd�d��ZSefd�d��ZTe�UeV�Wd��jXd+ eV�YeVjZ�j[k�d�d�� �Z\efd�d��Z]efd�d��Z^efd�d��Z_efd�d��Z`efd�d��Zaefd�d��Zbefd�d��Zcefd�d��Zdefd�d��Zeefd�d��Zfefd�d��Zgefd�d��Zhefd�d��Zid�d�� Zjefd�d��Zkefd�d��Zlefd�d��Zmefd�dZnefd�dĄZoefd�dƄZpefd�dȄZqefd�dʄZrd�d̄ Zsefd�d΄Ztefd�dЄZuefd�d҄Zvefd�dԄZwefd�dքZxefd�dZyefd�dڄZzefd�d܄Z{efd�dބZ|efd�d�Z}efd�d�Z~efd�d�Zefd�d�Z�efd�d�Z�efd�d�Z�efd�d�Z�efd�d�Z�e�UeV�Wd��jXd+ eV�YeVjZ�j[k�efd�d��Z�efd�d�Z�efd�d�Z�efd�d��Z�efd�d��Z�efd�d��Z�efd�d��Z�efd�d��Z�efd��d �Z�ef�d�d�Z�ef�d�d�Z�ef�d�d�Z�ef�d�d�Z�ef�d �d �Z��d�d� Z�ef�d �d�Z�ef�d�d�Z�ef�d�d�Z�ef�d�d�Z�ef�d�d�Z��d�d� Z�ef�d�d�Z��d�d� Z�ef�d�d�Z��d�d � Z��d!�d"� Z��d#�d$� Z��d%�d&� Z��d'�d(� Z��d)�d*� Z��d+�d,� Z��d-�d.� Z��d/�d0� Z��d1�d2� Z��d3�d4� Z��d5�d6� Z��d7�d8� Z��d9�d:� Z��d;�d<� Z��d=�d>� Z��d?�d@� Z��dA�dB� Z�e�Ue� �dC��dD�dE� �Z��dF�dG� Z��dH�dI� Z��dJ�dK� Z��dL�dM� Z��dN�dO� Z�ef�dP�dQ�Z��dR�dS� Z��dT�dU� Z��dV�dW� Z��dX�dY� Z��dZ�d[� Z��d\�d]� Z��d^�d_� Z�e�Ue� �dC��d`�da� �Z��db�dc� Z��dd�de� Z��df�dg� Z��dh�di� Zdj�dk� ZÐdl�dm� ZĐdn�do� ZŐdp�dq� ZƐdr�ds� Zǐdt�du� ZȐdv�dw� Zɐdx�dy� Zʐdz�d{� Zːd|�d}� Z̐d~�d� Z͐d��d�� Zΐd��d�� Zϐd��d�� ZАd��d�� Zѐd��d�� ZҐd��d�� ZӐd��d�� ZԐd��d�� ZՐd��d�� Zd��d�� Zאd��d�� Zؐd��d�� Zِd��d�� Zڐd��d�� Zېd��d�� Zܐd��d�� Zݐd��d�� Zސd��d�� Zߐd��d�� Z�d��d�� Z�e�Ue� �dC��d��d�� �Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�d��d�� Z�ddÄ Z�dĐdń Z�dƐdDŽ Z�dȐdɄ Z�dʐd˄ Z�d̐d̈́ Z�dΐdτ Z��dАdф Z��dҐdӄ Z��dԐdՄ Z��ddׄ Z�e�Ue� �dC��dؐdل �Z��dڐdۄ Z��dܐd݄ Z��dސd߄ Z��d�d� Z��d�d� Z��d�S (� �TestRegressionc C s d}t t�|g�t�|�� d S )Ng ףp= @)r �np�array)�self�level�v� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/core/tests/test_regression.py�test_invalid_round s z!TestRegression.test_invalid_roundc C s t jddt jfgd� d S )N)r �x)�dtype)r �empty�int64)r r r r r! �test_mem_empty s zTestRegression.test_mem_emptyc C s^ t �t �ddgddgddgg��}t� }t�||� |�d� t�|�}|�� t ||� d S )N� � � r � � ) r � transposer r �pickle�dump�seek�load�closer )r r �a�f�br r r! �test_pickle_transposed# s " z%TestRegression.test_pickle_transposedc C s( t tjtj d� t tjtj d� d S )N�Int64�UInt64)r r �typeNAr&