관리-도구
편집 파일: test_defchararray.cpython-37.pyc
B ��Fd�d � @ s d dl mZmZmZ d dlZd dlZd dlmZ d dl m Z mZmZm Z mZmZ ddiZddiZG dd � d e �ZG d d� de �ZG dd � d e �ZG dd� de �ZG dd� de �ZG dd� de�ZG dd� de�ZG dd� de �ZG dd� de �ZG dd� de �Zdd� Zedk�re� dS )� )�division�absolute_import�print_functionN)�_vec_string)�TestCase�run_module_suite�assert_�assert_equal�assert_array_equal�suppress_warnings�unicodeTFc @ sD e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dS )� TestBasicc C sN t jddgddggdd�}t j�|�}t|jjd� t|dd gd dgg� d S )N�abc� zlong � 0123456789�O)�dtype� s abc� 2s longs 0123456789)�np�array�charr r �itemsizer )�self�A�B� r ��/builddir/build/BUILDROOT/alt-python37-numpy-1.13.3-8.el8.x86_64/opt/alt/python37/lib64/python3.7/site-packages/numpy/core/tests/test_defchararray.py�test_from_object_array s z TestBasic.test_from_object_arrayc C sv t jddgddggdd�}| �tt jj|f� t jj|ft�}t|jjdt �dd �jj � t |ddgd dgg� d S )Nr u Sigma Σzlong r r )r r �a�U�long) r r �assertRaises� ValueErrorr �kw_unicode_truer r r r )r r r r r r �test_from_object_array_unicode s z(TestBasic.test_from_object_array_unicodec C s� t �ddgddgg�}t|jjt j� t j�|�}t||� t|j|j� t|j|j� d|d<