관리-도구
편집 파일: test_records.cpython-311.pyc
� �܋f-O � �� � d dl Zd dlZd dlmZ d dlmZ d dlmZ d dl Z d dl Zd dlm Z mZmZmZmZmZ d dlmZ G d� d� � Z G d � d � � Z G d� d� � Zd � ZdS )� N)�BytesIO)�path)�Path)�assert_�assert_equal�assert_array_equal�assert_array_almost_equal� assert_raises�temppath)�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� ZdS )�TestFromrecordsc � � t j � g d�g d�gd�� � }t |d � � � d� � t |d j j d� � t |d j j d � � t |d j j d � � t |d j j d� � d S ) N)i� �dbeg333333�?)� �de��������?zcol1,col2,col3��namesr �col1�i�col2�U� �col3�f)�np�rec�fromrecordsr �item�dtype�kind�itemsize��self�rs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_records.py�test_fromrecordsz TestFromrecords.test_fromrecords s� � ��F��� 1� 1� 1�>�>�>�B�"2� � 4� 4���Q�q�T�Y�Y�[�[�"3�4�4�4��Q�v�Y�_�)�3�/�/�/��Q�v�Y�_�)�3�/�/�/��Q�v�Y�_�-�r�2�2�2��Q�v�Y�_�)�3�/�/�/�/�/� c � � dt fdt fg}t j � g |�� � }t |j d� � dS )z0 Verify fromrecords works with a 0-length input �a�b�r! �r N)�floatr r r r �shape)r% r! r&