관리-도구
편집 파일: test_print.cpython-37.pyc
B ��Fd� � @ s> d dl mZmZmZ d dlZd dlZd dlZd dlZd dl m Z mZmZm Z ejd dkrhd dlmZ nd dlmZ ejdej dejdiZd d � Zdd� Zd d� Zdd� Zdd� Zdd� Zdd� Zdd� Zd.dd�Zdd� Zdd� Zdd � Zd!d"� Z d#d$� Z!d%d&� Z"e"d'd(� �Z#e"d)d*� �Z$e"d+d,� �Z%e&d-k�r:e � dS )/� )�division�absolute_import�print_functionN)�run_module_suite�assert_�assert_equal�SkipTest� )�StringIO�infz-inf�nanc C s� x.dD ]&}t t| |��tt|��d| d� qW | d�jdkrbt t| d��ttd��d| d� nd}t t| d��|d| d� d S )N)r � ���g@��x�Dz!Failed str formatting for type %s)�err_msgg _�B� Z1e10z1e+10)r �str�float�itemsize)�tp�x�ref� 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_print.py�check_float_type s r c c s( x"t jt jt jgD ]} t| fV qW dS )z� Check formatting. This is only for the str function, and only for simple types. The precision of np.float and np.longdouble aren't the same as the python float precision. N)�np�float32�double� longdoubler )�tr r r �test_float_types"