Submit
Path:
~
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
site-packages
/
numpy
/
ma
/
tests
/
__pycache__
/
File Content:
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 �O/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 Zilist�flistZslist�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"