관리-도구
편집 파일: test_print.cpython-311.pyc
� �܋f� � �, � d dl Z d dlZd dlZd dlmZmZmZ d dlm Z d dl mZ ej dej dej diZej � dej ej ej g� � d � � � Zej � dej ej ej g� � d � � � Zej � dej ej ej g� � d� � � Zej � dej ej ej g� � d � � � Zdd�Zej � dej ej ej g� � d� � � Zej � dej ej ej g� � d� � � Zd� Z G d� de � � ZdS )� N)�assert_�assert_equal�IS_MUSL)�CommaDecimalPointLocale)�StringIO�infz-inf�nan�tpc � � dD ]G}t t | |� � � � t t |� � � � d| z �� � �H | d� � j dk rGt t | d� � � � t t d� � � � d| z �� � dS d}t t | d� � � � |d| z �� � dS ) z� Check formatting. This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision. �r � ���g@��x�D�!Failed str formatting for type %s��err_msg� ��7y�AC� �1e16�1e+16N)r �str�float�itemsize�r �x�refs �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_print.py�test_float_typesr s � � � G� G���S���A���Z�Z��U�1�X�X���@�2�E� G� G� G� G� G� �r�$�x�x��1����S���D���]�]�C��f� � �$6�$6�@�2�E� G� G� G� G� G� G� ���S���D���]�]�C�@�2�E� G� G� G� G� G� G� c � � t j t j t j fD ]8}t t | |� � � � t | d| z �� � �9dS )z� Check formatting of nan & inf. This is only for the str function, and only for simple types. The precision of np.float32 and np.longdouble aren't the same as the python float precision. r r N)�npr r r r �_REF)r r s r �test_nan_inf_floatr"