관리-도구
편집 파일: test_mrecords.cpython-37.pyc
B ��Fd5P � @ s� d Z ddlmZmZmZ ddlZddlZddlZddl m Z ddlmZ ddl mZm Z ddlmZmZmZ ddlmZmZ ddlmZmZmZmZmZmZ dd lmZmZmZ G d d� de�Z G dd � d e�Z!G dd� de�Z"dd� Z#e$dkr�e� dS )z^Tests suite for mrecords. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu � )�division�absolute_import�print_functionN)�recarray)�masked�nomask)�TestCase�run_module_suite�temppath)�fromrecords� fromarrays)� MaskedRecords� mrecarrayr �fromtextfiler �addfield)�assert_�assert_equal�assert_equal_recordsc @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#S )$�TestMRecordsc O s t j| f|�|� | �� d S )N)r �__init__�setup)�self�args�kwds� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/ma/tests/test_mrecords.pyr ! s zTestMRecords.__init__c C sl dddddg}dddd d g}ddd ddg}dt fdtfdg}dddddg}tjtt|||��||d�| _d S )N� � � � � g�������?g������@gffffff @g������@g @s ones twos threes fours five�a�b)�cz|S8r )�mask�dtype)�int�float�ma�array�list�zip�base)r �ilist�flist�slist�ddtyper$ r r r r % s zTestMRecords.setupc C s� | j }|�t�}t|j|j� t|j|j� tt|j t �� t|j |j �t �� xdD ]}t|| || � qVW t|�t�|� d S )N)r! r"