관리-도구
편집 파일: test_unicode.cpython-37.pyc
B ��Fd�7 � @ sj d dl mZmZmZ d dlZd dlZd dlmZ d dl m Z mZmZm Z mZ ejdd� dkrldZdd � Zn"eed ��dkr�dZndZd d � ZdZdZdd� ZG dd� de�ZG dd� dee �ZG dd� dee �ZG dd� dee �ZG dd� de�ZG dd� dee �ZG dd� dee �ZG d d!� d!ee �ZG d"d#� d#ee �Z G d$d%� d%ee �Z!G d&d'� d'ee �Z"G d(d)� d)e�Z#G d*d+� d+e#e �Z$G d,d-� d-e#e �Z%G d.d/� d/e#e �Z&G d0d1� d1e#e �Z'G d2d3� d3e#e �Z(G d4d5� d5e#e �Z)G d6d7� d7�Z*G d8d9� d9e*e �Z+G d:d;� d;e*e �Z,G d<d=� d=e*e �Z-G d>d?� d?e*e �Z.G d@dA� dAe*e �Z/G dBdC� dCe*e �Z0e1dDk�rfe� dS )E� )�division�absolute_import�print_functionN)�unicode)�TestCase�run_module_suite�assert_�assert_equal�assert_array_equal� )� r Fc C s� t | t�rZt| �} | sd}ntdd� | D ��}|dk r<d}n|dk rJd}nd}|t| � S t| �}|jd krzt|�|j S t� |j�|j S d S ) Nr c S s g | ]}t |��qS � )�ord)�.0�cr 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_unicode.py� <listcomp> s z!buffer_length.<locals>.<listcomp>� � i r � ) � isinstancer �str�max�len� memoryview�shape�itemsize�np�prod)�arrZcharmax�size�vr r r � buffer_length s r"