%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.opt-1.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_funccCsPt||�d|fd|ffD]0\}}t|j�d��D]\}}|dkrDq2|r2q2qdS)N�old�new�
r)�
_compare_docs�	enumerater(�split)r�new_funcZknd�funcZli�linerrr�test_deprecate_help_indentationYs
r6cCs8t�|�}t�|�}|�d�d}t||d�|�dS)Nz

r	)�inspectZgetdoc�indexr)rr3Zold_docZnew_docr8rrrr0js

r0cCstdtjv�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>�rrA�TrrBrrCrD�rrE�brFrGrrr�"test_unusual_order_positive_stride�sz1TestByteBounds.test_unusual_order_positive_stridecCsHtd��dd�}|jddd�}t�|�\}}t|||j|j�dS)Nr?rr@���rIrKrrr�"test_unusual_order_negative_stride�sz1TestByteBounds.test_unusual_order_negative_stridecCsHtd�}|ddd�}t�|�\}}t|||jd|j|j�dS)Nr?r	)rrrBrrCrDrKrrr�test_strided�szTestByteBounds.test_stridedN)�__name__�
__module__�__qualname__rHrMrOrPrrrrr={sr=cCs6ttd��td��Wd�n1s(0YdS)Nzno deprecation warning)r�
ValueErrorrrrr�(test_assert_raises_regex_context_manager�srUcCs(Gdd�d�}Gdd�d�}dd�}dS)Nc@seZdZdS)z1test_info_method_heading.<locals>.NoPublicMethodsN)rQrRrSrrrr�NoPublicMethods�srVc@seZdZdd�ZdS)z3test_info_method_heading.<locals>.WithPublicMethodscSsdSrrrrrr�first_method�sz@test_info_method_heading.<locals>.WithPublicMethods.first_methodN)rQrRrSrWrrrr�WithPublicMethods�srXcSs t�}tj||d�d|��vS)N)rzMethods:)rr�infor)�clsrrrr�_has_method_heading�sz5test_info_method_heading.<locals>._has_method_headingr)rVrXr[rrr�test_info_method_heading�sr\).r7�sysZpytestZ
numpy.corerZ
numpy.testingrrrZ	numpy.librrZnumpy.lib.utils�libr�iorZmarkZskipif�flags�optimize�version_inforrrrr r"Z	new_func4r#r9r$Z	new_func6r'r)r*r+r,Zparametrizer6r0r:r<r=rUr\rrrr�<module>sZ�


�


Zerion Mini Shell 1.0