403Webshell
Server IP : 54.37.205.81  /  Your IP : 216.73.216.76
Web Server : nginx/1.22.1
System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64
User : debian ( 1000)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/numpy/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�;7f�	����ddlmZmZmZmZmZddlmZddlZddl	Z	ddl
Z
ddlZddlm
Z
d�Zd�Zej�d���ej�ed	���d
�����ZdS)�)�
assert_raises�assert_warns�assert_�assert_equal�IS_WASM)�pickleN)�reloadc�t�ddl}ddl}|j}|j}|j}tt��5t|��ddd��n#1swxYwYt||ju��t||ju��t||ju��ttt|j��tt��5t|��ddd��n#1swxYwYt||ju��t||ju��t||ju��dS)Nr)�numpy�numpy._globals�_NoValue�VisibleDeprecationWarning�ModuleDeprecationWarningr�UserWarningr	rr�RuntimeError�_globals)�nprr
rrs     �</usr/lib/python3/dist-packages/numpy/tests/test_reloading.py�test_numpy_reloadingrs������������{�H� "� <��!�:��	�k�	"�	"����r�
�
�
��������������������H���#�$�$�$��$��(C�C�D�D�D��%��)E�E�F�F�F��,����7�7�7�	�k�	"�	"����r�
�
�
��������������������H���#�$�$�$��$��(C�C�D�D�D��%��)E�E�F�F�F�F�Fs#�A�A�A�C+�+C/�2C/c	��ddl}tdtjdz��D]e}t	t|j��d��ttjtj	|j|�����|ju���fdS)Nr��z
<no value>)�protocol)
r�ranger�HIGHEST_PROTOCOLr�reprr
r�loads�dumps)r�protos  r�test_novaluer 's��������q�&�1�A�5�6�6�K�K���T�"�+�&�&��5�5�5����V�\�"�+�38�:�:�:�;�;�>@�k�J�	K�	K�	K�	K�K�K�zQDebian: disabled it runs in a separate process, picking up the system-wide module)�reasonzcan't start subprocessc���tjd��}tjtjd|gd���}|jr1td|j�d|j�	�������dS)z�At the time of writing this, it is *not* truly supported, but
    apparently enough users rely on it, for it to be an annoying change
    when it started failing previously.
    a
        import sys
        from pytest import warns
        import numpy as np

        for k in list(sys.modules.keys()):
            if "numpy" in k:
                del sys.modules[k]

        with warns(UserWarning):
            import numpy as np
        z-cT)�capture_outputzNon-zero return code: z

N)
�textwrap�dedent�
subprocess�run�sys�
executable�
returncode�AssertionError�stderr�decode)�code�ps  r�test_full_reimportr1/s����?��
�
�D�	�����d�3�D�I�I�I�A��|�
��L�Q�\�L�L�����9J�9J�L�L�
�
�	
�
�
r!)�
numpy.testingrrrrr�numpy.compatr�pytestr)r'r%�	importlibr	rr �mark�skip�skipifr1�r!r�<module>r:s���������������� ������
�
�
�
�
�
�
�
���������������G�G�G�,K�K�K�����l��m�m�����G�$<��=�=�
�
�>�=�n�m�
�
�
r!

Youez - 2016 - github.com/yon3zu
LinuXploit