CDZ , 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 ZddZej dej ej ej g d Zej dej ej ej g d Zd Z G d de ZdS ) N)assert_assert_equalIS_MUSL)CommaDecimalPointLocale)StringIOinfz-infnantpc 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@xD!Failed str formatting for type %serr_msg 7yAC 1e161e+16N)r strfloatitemsizer xrefs o/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/core/tests/test_print.pytest_float_typesr s G GSAZZU1XX@2E G G G G G r$xx1SD]]Cf $6$6@2E G G G G G G SD]]C@2E 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" % so frvgrv &