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/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

��c��@szddlmZmZmZmZddlmZddlZddlZddl	Z	ddl
mZddlZdd�Z
dd�Zejjd	d
�dd��ZdS)
�)�
assert_raises�assert_warns�assert_�assert_equal)�pickleN)�reloadcCs�ddl}ddl}|j}|j}|j}tt��t|�Wd�n1s$wYt||ju�t||ju�t||ju�t	t
t|j�tt��t|�Wd�n1sXwYt||ju�t||ju�t||ju�dS)Nr)�numpy�numpy._globals�_NoValue�VisibleDeprecationWarning�ModuleDeprecationWarningr�UserWarningrrr�RuntimeError�_globals)�nprr
rr�r�</usr/lib/python3/dist-packages/numpy/tests/test_reloading.py�test_numpy_reloadings$

�

�rcCsRddl}tdtjd�D]}tt|j�d�tt�tj	|j|d��|ju�qdS)Nr��z
<no value>)�protocol)
r�ranger�HIGHEST_PROTOCOLr�reprr
r�loads�dumps)r�protorrr�test_novalue!s���rzQDebian: disabled it runs in a separate process, picking up the system-wide module)�reasoncCs t�d�}t�tjd|g�}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-cN)�textwrap�dedent�
subprocess�run�sys�
executable)�code�prrr�test_full_reimport)s
	r')�
numpy.testingrrrr�numpy.compatrr#r!r�	importlibr�pytestrr�mark�skipr'rrrr�<module>s

https://t.me/RX1948 - 2025