관리-도구
편집 파일: test_deprecations.cpython-311.pyc
� �܋fdy � �� � d Z ddlZddlZddlZddlZddlZddlZddlZddlZ ddl mZmZm Z mZmZmZmZ ddlmZ ddlZdZn # e$ r dZY nw xY w G d� d� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� d� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z! G d� de� � Z" G d� d e� � Z# G d!� d"e� � Z$ G d#� d$e� � Z% G d%� d&e� � Z& G d'� d(e� � Z' G d)� d*e� � Z( G d+� d,e� � Z) G d-� d.e� � Z* G d/� d0e� � Z+ G d1� d2e� � Z, G d3� d4e� � Z- G d5� d6e� � Z. G d7� d8e� � Z/ G d9� d:e� � Z0 G d;� d<e� � Z1 G d=� d>e� � Z2 G d?� d@e� � Z3 G dA� dBe� � Z4 e j5 dC� � j6 e j5 dC� � j7 dD� dE� dF�Z8ej9 �: dGe8�; � � e8�H� � G dI� dJe� � � � Z< G dK� dLe� � Z= G dM� dNe� � Z> G dO� dPe� � Z? G dQ� dRe� � Z@ G dS� dTe� � ZA G dU� dVe� � ZB G dW� dXe� � ZC G dY� dZe� � ZD G d[� d\e� � ZEej9 �: d]g d^�� � d_� � � ZFej9 �G d`� � G da� db� � � � ZH G dc� dde� � ZI G de� dfe� � ZJ G dg� dhe� � ZKdS )iz� Tests related to deprecation warnings. Also a convenient place to document how deprecations should eventually be turned into errors. � N)� assert_raises�assert_warns�assert_�assert_array_equal�SkipTest�KnownFailureException�break_cycles��fromstring_null_term_c_apiTFc �L � e Zd ZdZeZd� Zd� Zdddej di fd�Z di fd�Zd S ) �_DeprecationTestCase� c �� � t j d�� � | _ | j � � � | _ t j d| j �� � t j d| j | j �� � d S )NT)�record�always)�category��messager )�warnings�catch_warnings�warn_ctx� __enter__�log�filterwarnings�warning_clsr ��selfs �u/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_deprecations.py�setup_methodz!_DeprecationTestCase.setup_method# sw � � �/�t�<�<�<�� ��=�*�*�,�,��� ���4�3C�D�D�D�D����$�,�)-�)9� ;� ;� ;� ;� ;� ;� c �8 � | j � � � d S �N)r �__exit__r s r �teardown_methodz$_DeprecationTestCase.teardown_method1 s � �� ��� � � � � r � F� c �& � d}g | j dd�<