?????????? ????????? - ??????????????? - /usr/lib64/python3.9/site-packages/numpy/core/tests/__pycache__/test_abc.cpython-39.pyc
???????
a z[yc � @ s: d dl mZ d dlZd dlZd dlmZ G dd� d�ZdS )� )�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�np�number�numbers�NumberZinexact�ComplexZcomplexfloatingZfloating�RealZinteger�IntegralZ signedintegerZunsignedinteger)�self� r �?/usr/lib64/python3.9/site-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_uint1 s � �zTestABC.test_uintN)r � __module__�__qualname__r r r r r r r r r r s r )Z numpy.testingr r Znumpyr Znumpy.core.numerictypesr r r r r r �<module> s
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????