OwlCyberSecurity - MANAGER
Edit File: test_abc.cpython-38.pyc
U �i]b � @ sP d dl mZmZmZ d dlmZ d dlZd dlZd dl m Z G dd� de�ZdS )� )�division�absolute_import�print_function)�assert_N)�sctypesc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )�TestABCc C s� t ttjtj�� t ttjtj�� t ttjtj�� t ttj tj �� t ttjtj�� t ttj tj�� t ttjtj�� d S )N)r � issubclass�npZnumber�numbers�NumberZinexact�ComplexZcomplexfloatingZfloating�RealZinteger�IntegralZ signedintegerZunsignedinteger)�self� r �;/usr/lib/python3/dist-packages/numpy/core/tests/test_abc.py� test_abstract s zTestABC.test_abstractc C s� t d D ]t}tt|� tj�d�|j�� tt|tj�d�|j�� tt|� tj� d�|j�� tt|tj� d�|j�� qd 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 � isinstancer r �format�__name__r ZRational�r �tr r r �test_floats s � � � �zTestABC.test_floatsc C s� t d D ]t}tt|� tj�d�|j�� tt|tj�d�|j�� tt|� tj� d�|j�� tt|tj� d�|j�� qd 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 r r r r r r r r r �test_complex! s � � � �zTestABC.test_complexc C sH t d D ]:}tt|� tj�d�|j�� tt|tj�d�|j�� qd S )N�int�{0} is not instance of Integral�{0} is not subclass of Integral�r r r r r r r r r r r r �test_int, s � �zTestABC.test_intc C sH t d D ]:}tt|� tj�d�|j�� tt|tj�d�|j�� qd S )NZuintr r r r r r r � test_uint3 s � �zTestABC.test_uintN)r � __module__�__qualname__r r r r r! r r r r r s r ) Z __future__r r r Z numpy.testingr r Znumpyr Znumpy.core.numerictypesr �objectr r r r r �<module> s