403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_atexit.cpython-315.opt-1.pyc
R
>lqj�c�4�]PHs]PHs]PHs]PHs]PHs]QHGs]QHGsG	s	]QHG
s
]QHGsQQ\O2s
QQ\O2s\OQ	Q
\O22s\Q6Xc\O$2P!P!)�)�support)�SuppressCrashReport�
script_helper)�	os_helper)�threading_helperc�(`�\sQs]snQsQsUsP!)�GeneralTestc�`�[OQ2o[OU2P!)z_test_atexit.py)r�findfiler�run_test_script)�self�scripts& �%C:\Python315\\Lib\test\test_atexit.py�test_general�GeneralTest.test_generals!���!�!�"3�4���%�%�f�-��)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�__classdictcell__��
__classdict__s@rrrs����.�.rrc�\`�\sQs]snQsQs\O2\OQ2\
O\OQ2Q222s
\O2Q2s\O2\
O\\Q2Q2Q	22sQ
sUsP!)�FunctionalTestc��[OQ2o[OQU2oUO	UO
O
2O2QQ,2UOUO2P!)z�
            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��[OQ2o[OQU2oUO	UO
O
2O2QQ,2UOUO2P!)a@
            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�atexit1r!r+s&  r�test_atexit_instances�$FunctionalTest.test_atexit_instances!sd����� �
���,�,�T�4�8����������)�4�4�6��I�8N�O�������!r�cpuzonly meaningful without the GILc�b�Qo[OQ[OU22P!)a
        from threading import Thread

        def dummy():
            pass


        def thready():
            for _ in range(100):
                atexit.register(dummy)
                atexit._clear()
                atexit.register(dummy)
                atexit.unregister(dummy)
                atexit._run_exitfuncs()


        threads = [Thread(target=thready) for _ in range(10)]
        for thread in threads:
            thread.start()

        for thread in threads:
            thread.join()
        r)rr$r"r#)r�sources& r�test_atexit_thread_safety�(FunctionalTest.test_atexit_thread_safety3s$��
��4	�&�&�t�X�_�_�V�-D�Erc��Qo[OQU2vq#oUOU]2UOUQ[OQ[O0OQ22UOUQ2P!)aif True:
        import atexit
        import threading
        import time


        def run():
            print(24)
            time.sleep(1)
            print(42)

        @atexit.register
        def start_thread():
            threading.Thread(target=run).start()
        r�24�42zutf-8r)rr$r%�os�linesep�encode)rr7�return_code�stdout�stderrs&    r�test_thread_created_in_atexit�,FunctionalTest.test_thread_created_in_atexitTsr����'4�&D�&D�T�6�&R�#��V�����a�(�����2�b�j�j�\��B�J�J�<�!@�!G�!G��!P�Q������%r�pipe�requires os.pipe()c��]QHGo[O
2vq#QUQUQ0oWO
2oUOU2UO2UO[OU]d2Q2[OU2[OU2P![cSOQ2K�h9h[OS2[OS2h9h)r)�interpretersz!subinterpreters are not availablez�if True:
        import atexit
        import threading
        import time
        import os

        def run():
            os.write(z=, b'spanish')
            time.sleep(1)
            os.write(z�, b'inquisition')

        @atexit.register
        def start_thread():
            threading.Thread(target=run).start()
        sspanishinquisition)�
concurrentrH�ImportError�skipTestr=rE�create�exec�closer%�read)rrHrO�writer7�interps&     r�,test_thread_created_in_atexit_subinterpreter�;FunctionalTest.test_thread_created_in_atexit_subinterpreterjs���	?�/��g�g�i�����W���W�	����$�$�&��	��K�K���
�L�L�N����R�W�W�T�3�/�1F�G��H�H�T�N��H�H�U�O��9�	?��M�M�=�>�	?��6
�H�H�T�N��H�H�U�O�s#�B0�AC�0	C�:C�C�.Dr)rrrrr.r3r�requires_working_threadingr�requires_resource�unittest�
skipUnless�Py_GIL_DISABLEDr8rC�hasattrr=rRrrrs@rrrs�����
"�"�$�0�0�2����u�%�
����0�0�2S�T�F�U�&�3�F�<�0�0�2�&�3�&�*�0�0�2�
�����V�,�.B�C��D�3�rrc�`�\sQs]�snQsQs\O\\	Q2Q2Q2s
\OQ2s
QsUsP!)�SubinterpreterTestc��[O2o[OQ2o[O
U2oUO
U]2UO
[O2U2P!)z�
            import atexit
            def f():
                pass
            atexit.register(f)
            del atexit
        ��atexit�_ncallbacksr"r#r�run_in_subinterpr%�r�nr,�rets&   r�test_callbacks_leak�&SubinterpreterTest.test_callbacks_leak�s`��
��� ����� �
���&�&�t�,������a� �����+�+�-�q�1rc��[O2o[OQ2o[O
U2oUO
U]2UO
[O2U2P!)z�
            import atexit
            def f():
                pass
            atexit.register(f)
            atexit.__atexit = atexit
        r]ras&   r�test_callbacks_leak_refcycle�/SubinterpreterTest.test_callbacks_leak_refcycle�s`��
��� ����� �
���&�&�t�,������a� �����+�+�-�q�1rrErFc�h�Qo[O2vq#[OQO	U22o[
OU2o[OU2UO[OU[U22U2[OU2P!)sThe test has passed!z�
            import os
            import atexit
            def callback():
                os.write({:d}, b"The test has passed!")
            atexit.register(callback)
        )r=rEr"r#�formatrr`rNr%rO�len)r�expected�r�wr,rcs&     r�(test_callback_on_subinterpreter_teardown�;SubinterpreterTest.test_callback_on_subinterpreter_teardown�s{��+���w�w�y������ �
�F�1�I�
���&�&�t�,��
������������C��M�2�H�=�
����rc���[OQ2o[O29^tt^2o[O
UQU2o[
29^tt^2[OU[OQ59^tt^2oUO2UOO2oUOO2oPPP2PPP2PPP2UOWOQ2UO!QW2UOQW2P!)%fhKb9h)%fhKm9h)%fhKx9h)z�
            import atexit
            import _testcapi

            def callback():
                print("hello")

            atexit.register(callback)
            # Simulate low memory condition
            _testcapi.set_nomemory(0)
        �test_atexit_script)rBshellosMemoryError)r�)r"r#r�temp_dirr�make_scriptr�spawn_python�
subprocess�PIPE�waitrArOrB�assertIn�
returncode�assertNotIn)rr,rtr
�procrArBs&      r�test_atexit_with_low_memory�.SubinterpreterTest.test_atexit_with_low_memory�s������
 �

���
�
�
!�
!�X�"�.�.�x�9M�t�T�F�$�&�&�"�/�/��7A���H�H�KO��I�I�K�!�[�[�-�-�/�F�!�[�[�-�-�/�F�	H�'�"�	
�
�
�d�o�o�v�.�����6�*��
�
�n�f�-�H�H��'�&��"�
!�sN�+E� /E	�AD.
�E	�E�.D>�7D>�9E	�E
�
E
�E�E$	�E$	r)rrrrrdrgrVrWrYr=ror�	nomemtestr~rrrs@rr[r[�sS����2� 
2������V�,�.B�C��D��$
���.��.rr[�__main__)r^r=rwr"rV�testr�test.supportrrrr�TestCaserr�cpython_onlyr[r�mainrrr�<module>r�s���
�	�����;�"�)�.�(�#�#�.�z�X�&�&�z�x	���O.��*�*�O.��O.�d�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit