관리-도구
편집 파일: test_memmap.cpython-37.pyc
B ��Fd� � @ s� d dl mZmZmZ d dlZd dlZd dlZd dlmZm Z m Z mZ d dlZd dl mZmZmZmZmZmZmZmZmZ d dlmZ d dl mZmZmZ d dlmZmZmZm Z m!Z!m"Z"m#Z# G dd � d e�Z$e%d kr�e� dS )� )�division�absolute_import�print_functionN)�NamedTemporaryFile� TemporaryFile�mktemp�mkdtemp) �memmap�sum�average�product�ndarray�isscalar�add�subtract�multiply)�Path)�arange�allclose�asarray)�TestCase�run_module_suite�assert_�assert_equal�assert_array_equal�dec�suppress_warningsc @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z e �edkd�dd� �Z dd� Ze �ejdkd�dd� �Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� ZdS )+� TestMemmapc C sB t dd�| _t� | _d| _d| _td| jd�| _| j�| j� d S )N�mmap)�prefix)� � �float32� )�dtype) r �tmpfpr �tempdir�shaper$ r �data�resize)�self� 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_memmap.py�setUp s zTestMemmap.setUpc C s | j �� t�| j� d S )N)r% �close�shutil�rmtreer&