403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
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 :  /lib/python3/dist-packages/IPython/lib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�@�c>��h�dZddlZddlmZddlZddlmZddlmZddlm	Z
ddlmZd�Z
d	�Zd
�ZdS)z%Test suite for the deepreload module.�N)�Path)�TemporaryDirectory)�modules_reloading)�reload)�prepended_to_syspathc���t��5}t|��5t|��}t|dzdd���5}|�d��ddd��n#1swxYwYt|dzdd���5}|�d��ddd��n#1swxYwYd	dl}d	dl}|���}t|d
g���t||j��dusJ�d
|_
tjtd���5t|d
g���ddd��n#1swxYwYtt��d	ksJ�|j
rJ�|���}d
|_
t|��|j
sJ�t||j��d
usJ�	ddd��n#1swxYwYddd��dS#1swxYwYdS)z?Test that dreload does deep reloads and skips excluded modules.zA.py�wzutf-8)�encodingz!class Object:
    pass
ok = True
NzB.pyz$import A
assert A.ok, 'we are fine'
r�A)�excludeTFzwe are fine��match)rrr�open�writer�B�Object�dreload�
isinstance�ok�pytest�raises�AssertionError�lenr)�tmpdir�
tmpdirpath�frr�objs      �C/usr/lib/python3/dist-packages/IPython/lib/tests/test_deepreload.py�test_deepreloadrsG��	�	�	�6��
!�&�
)�
)�	6�	6��f���J��j�6�)�3��A�A�A�
@�Q����>�?�?�?�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@����
@�
@�
@�
@��j�6�)�3��A�A�A�
B�Q����@�A�A�A�
B�
B�
B�
B�
B�
B�
B�
B�
B�
B�
B����
B�
B�
B�
B��H�H�H��H�H�H��(�(�*�*�C��A��u�%�%�%�%��c�1�8�,�,��4�4�4�4��A�D���~�]�C�C�C�
*�
*���C�5�)�)�)�)�
*�
*�
*�
*�
*�
*�
*�
*�
*�
*�
*����
*�
*�
*�
*��(�)�)�Q�.�.�.�.��t�O�O�O��(�(�*�*�C��A�D��A�J�J�J��4�K�K�K��c�1�8�,�,��5�5�5�5�5�5	6�	6�	6�	6�	6�	6�	6�	6�	6�	6�	6����	6�	6�	6�	6�6�6�6�6�6�6�6�6�6�6�6�6����6�6�6�6�6�6s��G�%G�A&�G�&A*�*G�-A*�.G�B(�G�(B,�,G�/B,�0A,G�D;�/G�;D?�?G�D?�A2G�6G�G	�G�	G	�
G�G�!Gc�F�tjttd��dS)N�
modulename)rr�	TypeErrorr��r�test_not_moduler%2s��
�M�)�W�l�3�3�3�3�3r$c��tjd��}tjtd���5t|��ddd��dS#1swxYwYdS)N�fake_moduleznot in sys.modulesr
)�types�
ModuleTyperr�ImportErrorr)r's r�test_not_in_sys_modulesr+6s����"�=�1�1�K�	��{�*>�	?�	?�	?����������������������������s�A
�
A�A)�__doc__r(�pathlibrr�tempfiler�IPython.lib.deepreloadrrr�IPython.utils.syspathcontextrrr%r+r#r$r�<module>r1s���+�+�

����������
�
�
�
�'�'�'�'�'�'�4�4�4�4�4�4�4�4�4�4�4�4�=�=�=�=�=�=�6�6�6�@4�4�4�����r$

Youez - 2016 - github.com/yon3zu
LinuXploit