%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/lib/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/lib/tests/__pycache__/test_utils.cpython-39.pyc

a

z[yc��@s�ddlZddlZddlZddlmZddlmZmZmZddl	m
Z
mZddlm
mZddlmZejjejjdkdd�ejjejd	kd
d�dd���Ze
d
d��Ze
dd�dd��Zdd�Ze
eddd�Zdd�Ze
e�Zdd�Ze
edd�Zdd�Ze
e�Z edd�d d!��Z!d"d#�Z"d$d%�Z#d&d'�Z$d(d)�Z%ejjejjdkd*d�ej�&d+eefeefee fg�d,d-���Z'd.d/�Z(ejjejjdkd*d�d0d1��Z)d2d3�Z*Gd4d5�d5�Z+d6d7�Z,d8d9�Z-dS):�N)�arange)�assert_�assert_equal�assert_raises_regex)�	deprecate�deprecate_with_doc)�StringIO�zPython running -OO)�reason)��
r�	candidate�zBroken as of bpo-44524cCs0t�}tjdd|dd�|��}td|v�dS)NZ
eigenvalueZnumpyF)�module�outputZimport_modulesznumpy.linalg.eig)r�utilsZlookfor�getvaluer)�out�r�@/usr/lib64/python3.9/site-packages/numpy/lib/tests/test_utils.py�test_lookfor
s
�rcCs|S�Nr��self�xrrr�old_funcsr�Rather use new_func2)�messagecCs|Srrrrrr�	old_func2srcCs|Srrrrrr�	old_func3$sr�	new_func3)Zold_name�new_namecCs|S)z Summary.

    Further info.
    rrrrr�	old_func4)sr"cCs|S)z+Summary.

        Bizarre indentation.
    rrrrr�	old_func52sr#zThis function is
deprecated.cCs|S)z
    Also in PEP-257.
    rrrrr�	old_func6;sr$�Rather use new_func7)�msgcCs|Srrrrrr�	old_func7Csr'cCstdtjv�dS)NZ
deprecated)rr�__doc__rrrr�test_deprecate_decoratorHsr)cCstdtjv�dS)Nr)rrr(rrrr� test_deprecate_decorator_messageLsr*cCs tdtjv�tdtjv�dS)Nrr )rr r(rrrr�test_deprecate_fnPsr+cCstdtjv�dS)Nr%)rr'r(rrrr�)test_deprecate_with_doc_decorator_messageUsr,z-OO discards docstringszold_func, new_funccCs~t||�d|fd|ffD]^\}}t|j�d��D]D\}}|dkr`|�d�sv|�d�rvJ|��q2|r2|�d�s2J|��q2qdS)N�old�new�
rz    � )�
_compare_docs�	enumerater(�split�
startswith)r�new_funcZknd�funcZli�linerrr�test_deprecate_help_indentationYs
r8cCs8t�|�}t�|�}|�d�d}t||d�|�dS)Nz

r	)�inspectZgetdoc�indexr)rr5Zold_docZnew_docr:rrrr1js

r1cCstdtjv�dS)Nz
        Bizarre)r�	new_func5r(rrrr�"test_deprecate_preserve_whitespaceqsr<cCst�d�dS)N�None)rZ	safe_evalrrrr�test_safe_eval_nameconstantvsr>c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestByteBoundscCs8td��dd�}t�|�\}}t|||j|j�dS�N�r�)r�reshaper�byte_boundsr�size�itemsize)r�a�low�highrrr�test_byte_bounds}szTestByteBounds.test_byte_boundscCs>td��dd�}|j}t�|�\}}t|||j|j�dSr@�rrC�TrrDrrErF�rrG�brHrIrrr�"test_unusual_order_positive_stride�sz1TestByteBounds.test_unusual_order_positive_stridecCsHtd��dd�}|jddd�}t�|�\}}t|||j|j�dS)NrArrB���rKrMrrr�"test_unusual_order_negative_stride�sz1TestByteBounds.test_unusual_order_negative_stridecCsHtd�}|ddd�}t�|�\}}t|||jd|j|j�dS)NrAr	)rrrDrrErFrMrrr�test_strided�szTestByteBounds.test_stridedN)�__name__�
__module__�__qualname__rJrOrQrRrrrrr?{sr?cCs6ttd��td��Wd�n1s(0YdS)Nzno deprecation warning)r�
ValueErrorrrrr�(test_assert_raises_regex_context_manager�srWcCs@Gdd�d�}Gdd�d�}dd�}||�s0J�||�r<J�dS)Nc@seZdZdS)z1test_info_method_heading.<locals>.NoPublicMethodsN)rSrTrUrrrr�NoPublicMethods�srXc@seZdZdd�ZdS)z3test_info_method_heading.<locals>.WithPublicMethodscSsdSrrrrrr�first_method�sz@test_info_method_heading.<locals>.WithPublicMethods.first_methodN)rSrTrUrYrrrr�WithPublicMethods�srZcSs t�}tj||d�d|��vS)N)rzMethods:)rr�infor)�clsrrrr�_has_method_heading�sz5test_info_method_heading.<locals>._has_method_headingr)rXrZr]rrr�test_info_method_heading�s
r^).r9�sysZpytestZ
numpy.corerZ
numpy.testingrrrZ	numpy.librrZnumpy.lib.utils�libr�iorZmarkZskipif�flags�optimize�version_inforrrrr r"Z	new_func4r#r;r$Z	new_func6r'r)r*r+r,Zparametrizer8r1r<r>r?rWr^rrrr�<module>sZ�


�


Zerion Mini Shell 1.0