관리-도구
편집 파일: test_abc.cpython-37.pyc
B ��Fd� � @ s^ d dl mZmZmZ d dlmZmZmZ d dlZd dl m Z G dd� de�ZedkrZe� dS )� )�division�absolute_import�print_function)�TestCase�assert_�run_module_suiteN)�sctypesc @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) �ABCc C s� x�t d D ]t}tt|� tj�d�|j�� tt|tj�d�|j�� tt|� tj� d�|j�� tt|tj� d�|j�� q W d S )N�floatz{0} is not instance of Realz{0} is not subclass of Realz{0} is instance of Rationalz{0} is subclass of Rational) r r � isinstance�numbers�Real�format�__name__� issubclass�Rational)�self�t� 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_abc.py�test_floats s zABC.test_floatsc C s� x�t d D ]t}tt|� tj�d�|j�� tt|tj�d�|j�� tt|� tj� d�|j�� tt|tj� d�|j�� q W d S )N�complexz{0} is not instance of Complexz{0} is not subclass of Complexz{0} is instance of Realz{0} is subclass of Real) r r r r �Complexr r r r )r r r r r �test_complex s zABC.test_complexc C sL xFt d D ]:}tt|� tj�d�|j�� tt|tj�d�|j�� q W d S )N�intz{0} is not instance of Integralz{0} is not subclass of Integral)r r r r �Integralr r r )r r r r r �test_int s zABC.test_intc C sL xFt d D ]:}tt|� tj�d�|j�� tt|tj�d�|j�� q W d S )N�uintz{0} is not instance of Integralz{0} is not subclass of Integral)r r r r r r r r )r r r r r � test_uint&