관리-도구
편집 파일: test_utils.cpython-37.pyc
B ��Fd� � @ s d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZ d dl mZmZm Z mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ d dl Z G dd� de!�Z"G dd� de"e j#�Z$G dd � d e j#�Z%G d d� de$�Z&G dd � d e"e j#�Z'G dd� de"e j#�Z(G dd� de j#�Z)G dd� de j#�Z*G dd� de j#�Z+G dd� de j#�Z,G dd� de j#�Z-G dd� de j#�Z.G dd� de j#�Z/G dd� de j#�Z0d9d d!�Z1d"d#� Z2d$d%� Z3d&d'� Z4d(d)� Z5d*d+� Z6d,d-� Z7d.d/� Z8d0d1� Z9d2d3� Z:G d4d5� d5e�Z;d6d7� Z<e=d8k�re� dS ):� )�division�absolute_import�print_functionN)�assert_equal�assert_array_equal�assert_almost_equal�assert_array_almost_equal�assert_array_less� build_err_msg�raises� assert_raises�assert_warns�assert_no_warnings�assert_allclose�assert_approx_equal�assert_array_almost_equal_nulp�assert_array_max_ulp�clear_and_catch_warnings�suppress_warnings�run_module_suite�assert_string_equal�assert_�tempdir�temppathc @ sL e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dS )�_GenericTestc C s | � ||� d S )N)�_assert_func)�self�a�b� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/testing/tests/test_utils.py�_test_equal s z_GenericTest._test_equalc C s2 y| � ||� W n tk r$ Y n X td��d S )Nz#a and b are found equal but are not)r �AssertionError)r r r r r r �_test_not_equal s z_GenericTest._test_not_equalc C s, t �ddg�}t �ddg�}| �||� dS )z/Test two equal array of rank 1 are found equal.� � N)�np�arrayr! )r r r r r r �test_array_rank1_eq"