관리-도구
편집 파일: test_regression.cpython-311.pyc
� �܋f7e � �� � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlZd dl mZmZmZmZmZmZmZmZmZmZmZmZmZmZ d dlmZmZ d dlm Z m!Z!m"Z" G d� d � � Z#dS ) � N)�path)�BytesIO)�chain)�assert_�assert_equal�IS_PYPY�assert_almost_equal�assert_array_equal�assert_array_almost_equal� assert_raises�assert_raises_regex�assert_warns�suppress_warnings�_assert_valid_refcount�HAS_REFCOUNT� IS_PYSTON�IS_WASM)�_no_tracing�requires_memory)�asbytes� asunicode�picklec �~ � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d � Z"d!� Z#d"� Z$d#� Z%d$� Z&d%� Z'd&� Z(d'� Z)e*j+ �, e-d(�)� � e*j+ �. d* e/j0 d+e1�,� � e/j2 d+� � gd-d.g�/� � d0� � � � � Z3d1� Z4d2� Z5d3� Z6d4� Z7d5� Z8d6� Z9d7� Z:d8� Z;d9� Z<d:� Z=d;� Z>d<� Z?d=� Z@d>� ZAd?� ZBd@� ZCdA� ZDdB� ZEdC� ZFdD� ZGdE� ZHdF� ZIdG� ZJdH� ZKdI� ZLdJ� ZMdK� ZNdL� ZOdM� ZPdN� ZQdO� ZRdP� ZSdQ� ZTdR� ZUdS� ZVdT� ZWdU� ZXdV� ZYdW� ZZe*j+ �[ e/j0 dX� � j\ dY e/j] e/j^ � � j_ k dZ�)� � d[� � � Z`d\� Zad]� Zbd^� Zcd_� Zdd`� Zeda� Zfdb� Zgdc� Zhdd� Zide� Zjdf� Zkdg� Zldh� Zmdi� Zndj� Zodk� Zpdl� Zqdm� Zrdn� Zsdo� Ztdp� Zudq� Zvdr� Zwds� Zxdt� Zydu� Zzdv� Z{dw� Z|dx� Z}dy� Z~dz� Zd{� Z�d|� Z�d}� Z�d~� Z�d� Z�d�� Z�d�� Z�d�� Z�e*j+ �[ e/j0 dX� � j\ dY e/j] e/j^ � � j_ k dZ�)� � d�� � � Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�e�d�� � � Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�e*j+ �[ e� d��)� � d�� � � Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�e*j+ �[ e� d��)� � d�� � � Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d Z�dÄ Z�dĄ Z�dń Z�dƄ Z�dDŽ Z�dȄ Z�dɄ Z�dʄ Z�d˄ Z�d̄ Z�d̈́ Z�d΄ Z�e*j+ �[ e�dϬ)� � dЄ � � Z�e*j+ �[ e�dϬ)� � dф � � Z�d҄ Z�dӄ Z�dԄ Z�dՄ Z�dք Z�dׄ Z�d Z�dل Z�dڄ Z�dۄ Z�d܄ Z�d݄ Z�dބ Z�d߄ Z�d� Z�d� Z�d� Z�e*j+ j� d� � � Z�e*j+ �[ e� d��)� � d� � � Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� �Z d�� �Zd�� �Ze*j+ �[ e� d��)� � d�� � � �Zd�� �Zd�� �Zd�� �Ze*j+ �[ �eo�e�j �j �d k �d�)� � �d� � � �Z�d� �Z�d� �Z �d� �Z�d� �Z�d� �Z�d� �Z�d � �Ze*j+ �. �d e/j0 �d�d�,� � e/�j d+� � g� � e*j+ �. �d �e�d�e�j dXz � � � � �d� � � � � �Z�d� �Z�d� �Z�d� �Z�d� �Z�d� �Ze*j+ �[ �e�j �dk �d�)� � �d� � � �Z�d� �Z�d� �Z e*j+ �[ �e�j �dk �d�)� � �e!�d��� � �d� � � � � �Z"�d� �Z#e*j+ �. �dg �d�� � e*j+ �. �d g �d!�� � �d"� � � � � �Z$�d#� �Z%�d$S (% �TestRegressionc �t � d}t t j |g� � t j |� � � � d S )Ng ףp= @)r �np�array��self�vs �s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_regression.py�test_invalid_roundz!TestRegression.test_invalid_round s/ � ����2�8�Q�C�=�=�"�(�1�+�+�6�6�6�6�6� c �L � t j ddt j fg�� � d S )N�� �x��dtype)r �empty�int64�r s r! �test_mem_emptyzTestRegression.test_mem_empty s&