403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python312/Lib/site-packages/numpy/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python312/Lib/site-packages/numpy/tests/__pycache__/test_reloading.cpython-312.pyc
�

	�g�	���ddlZddlZddlZddlmZddlZddlZddlmZ	ddl
mZmZm
Z
mZmZd�Zd�Zej$j'ed��d��Zy)	�N)�reload)�
assert_raises�assert_warns�assert_�assert_equal�IS_WASMc��ddl}ddl}|j}tj}tj
}t
t�5t|�ddd�t||ju�t|tj
u�t|tju�ttt|j�t
t�5t|�ddd�t||ju�t|tj
u�t|tju�y#1swY��xYw#1swY�cxYw)Nr)
�numpy�numpy._globals�_NoValue�ex�VisibleDeprecationWarning�ModuleDeprecationWarningr�UserWarningrrr�RuntimeError�_globals)�npr
rrrs     �<C:\Python312\Lib\site-packages\numpy/tests/test_reloading.py�test_numpy_reloadingrs������{�{�H� "� <� <��!�:�:��	�k�	"���r�
���H����#�$��$��(C�(C�C�D��%��)E�)E�E�F��,�����7�	�k�	"���r�
���H����#�$��$��(C�(C�C�D��%��)E�)E�E�F������s�D5�E�5D>�E
c	� �ddl}tdtjdz�D]j}t	t|j�d�ttjtj|j|���|ju��ly)Nr��z
<no value>)�protocol)
r
�range�pickle�HIGHEST_PROTOCOLr�reprrr�loads�dumps)r�protos  r�test_novaluer!)sp����q�&�1�1�A�5�6�K���T�"�+�+�&��5�����V�\�\�"�+�+�38�:�;�>@�k�k�J�	K�K�zcan't start subprocess)�reasonc��tjd�}tjtj
d|gd��}|jr3td|j�d|jj�����y)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_reimportr21sn���?�?��
�D�	�������d�3�D�I�A��|�|��$�Q�\�\�$4�D������9J�8K�L�
�	
�r")r*r(r&�	importlibrr�pytest�numpy.exceptions�
exceptionsr
�
numpy.testingrrrrrrr!�mark�skipifr2�r"r�<module>r;sY��
����
�
����G�,K������G�$<��=�
�>�
r"

Youez - 2016 - github.com/yon3zu
LinuXploit