관리-도구
편집 파일: test_longdouble.cpython-37.pyc
B ��FdO � @ s d dl mZmZmZ d dlZd dlZd dlmZm Z m Z mZmZm Z mZmZ d dlmZ e�ej�Zeje�ej�jk Zdej Zee�ee��kZ[dd� Zeee�d���Ze�ejd ekd �dd� �Z d d� Z!dd� Z"dd� Z#edd� �Z$e�%ed�dd� �Z&edd� �Z'dd� Z(e�%ed�dd� �Z)edd� �Z*ed d!� �Z+d"d#� Z,d$d%� Z-d&d'� Z.G d(d)� d)e�Z/ed*d+� �Z0ed,d-� �Z1ed.d/� �Z2d0d1� Z3e�%ed2�e�%ed�d3d4� ��Z4e�%ed2�e�%ed�d5d6� ��Z5e�%ed7�e�%ed�d8d9� ��Z6e7d:k�r e� dS );� )�division�absolute_import�print_functionN)�run_module_suite�assert_�assert_equal�dec� assert_raises�assert_array_equal�TestCase�temppath)�in_foreign_locale� c C s, dt j } t�| | | g�}t|d | � dS )z?Confirm that extracting a value doesn't convert to python floatr N)�LD_INFO�eps�np�arrayr )�o�a� 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_longdouble.py�test_scalar_extraction s r g�������?� z%repr precision not enough to show epsc C s, dt j } tt�t| ��| dt| � � d S )Nr zrepr was %s)r r r r � longdouble�repr)r r r r �test_repr_roundtrip! s r c C s t �d� d S )Nz1.2)r r r r r r �test_unicode) s r c C s t �d� d S )Nz1.2)r r r r r r �test_string- s r c C s t �d� d S )Ns 1.2)r r r r r r � test_bytes1 s r c C s* d} t jt| �tdd�}t|d | � d S )NgX9��v��?� )�dtype�sepr )r � fromstringr �floatr )�fr r r r �test_fromstring_foreign_repr5 s r% zNeed strtold_lc C s( dt j } tt�t| ��d��| � d S )Nr �ascii)r r r r r r �encode)r r r r �test_repr_roundtrip_bytes<