관리-도구
편집 파일: test_deprecations.cpython-37.pyc
B ��FdrI � @ s� d Z ddlmZmZmZ ddlZddlZddlZddlZddl Z ddlmZm Z mZmZmZmZmZ yddlZdZW n ek r� dZY nX G dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd � d e�Z#G d!d"� d"e�Z$G d#d$� d$e�Z%G d%d&� d&e�Z&G d'd(� d(e�Z'e(d)k�r�e� dS )*z� Tests related to deprecation warnings. Also a convenient place to document how deprecations should eventually be turned into errors. � )�division�absolute_import�print_functionN)�run_module_suite� assert_raises�assert_warns�assert_no_warnings�assert_array_equal�assert_�decTFc @ sJ e Zd ZdZeZdd� Zdd� Zdddej di fd d �Z di fdd�Zd S )�_DeprecationTestCase� c C sB t jdd�| _| j�� | _t jd| jd� t jd| j| jd� d S )NT)�record�always)�category)�messager )�warnings�catch_warnings�warn_ctx� __enter__�log�filterwarnings�warning_clsr )�self� 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_deprecations.py�setUp s z_DeprecationTestCase.setUpc C s | j �� d S )N)r �__exit__)r r r r �tearDown- s z_DeprecationTestCase.tearDown� Fr c C sR g | j dd�<