python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_repl.cpython-311.opt-2.pyc

e	ddlZddlZddlZddlZddlmZddlmZmZm	Z	ddl
mZesejdej
ejddZdZGd	d
ejZGddejZed
krejdSdS)N)dedent)cpython_onlyhas_subprocess_supportSuppressCrashReport)kill_pythonztest module requires subprocess)stdoutstderrc		tjtjtjd}|ddg}|||dttj	}d|d<tj|ftjdtj||d|S)	Nz<stdin>z-Ez-ienvvt100TERMT)
executabletextstdinrr	)
ospathjoindirnamesysrextend
setdefaultdictenviron
subprocessPopenPIPE)rr	argskwstdin_fnamecmd_liners       B/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_repl.py
spawn_replr"s',,rws~>>	JJKT4(HOOD
--tBJ//
0
0CCKH"'*~!%",/#)&	""
!"""c	t}|j|t|}|jdkrtd|S)NrzProcess didn't exit properly.)r"rwriter
returncode
ValueError)sourceprocessoutputs   r!run_on_interactive_moder+,sW
llGM

!
!FQ8999Mr#c@eZdZedZedZdZdS)TestInteractiveInterpretercDd}t|}t}t5|j|dddn#1swxYwYt|}|d|||jddS)Nz
            import sys, _testcapi
            1/0
            print('After the exception.')
            _testcapi.set_nomemory(0)
            sys.exit(0)
        zAfter the exception.)x)rr"rrr%rassertInr&self
user_inputpr*s    r!test_no_memoryz)TestInteractiveInterpreter.test_no_memory=s

J''
LL
 
"
"	&	&
GMM*%%%	&	&	&	&	&	&	&	&	&	&	&	&	&	&	&Q

,f555

alH-----sAAAcd}t|}t}|j|t	|}||jddS)Na        x = """<?xml version="1.0" encoding="iso-8859-1"?>
        <test>
            <Users>
                <fun25>
                    <limits>
                        <total>0KiB</total>
                        <kbps>0</kbps>
                        <rps>1.3</rps>
                        <connections>0</connections>
                    </limits>
                    <usages>
                        <total>16738211KiB</total>
                        <kbps>237.15</kbps>
                        <rps>1.3</rps>
                        <connections>0</connections>
                    </usages>
                    <time_to_refresh>never</time_to_refresh>
                    <limit_exceeded_URL>none</limit_exceeded_URL>
                </fun25>
            </Users>
        </test>"""
        r)rr"rr%rassertEqualr&r2s    r!test_multiline_string_parsingz8TestInteractiveInterpreter.test_multiline_string_parsingRs^
.J''
LL	

j!!!Qq)))))r#ctd}td}td|}||d}||jd|d|dS)NzY
            import os
            print("before close")
            os.close(0)
        zl
            from test.support import suppress_msvcrt_asserts
            suppress_msvcrt_asserts()
        z-crzbefore close)rr"communicater8r&r1)r3r4prepare_replr)r*s     r!test_close_stdinz+TestInteractiveInterpreter.test_close_stdinss




T<00$$Z003+Q///

nf-----r#N)__name__
__module____qualname__rr6r9r=r#r!r-r-;sX..\.(**\*@
.
.
.
.
.r#r-ceZdZdZdS)TestInteractiveModeSyntaxErrorscttd}|dd}gd}|||dS)NzJ        def f():
            print(0)
            return yield 42
        )z    return yield 42z           ^^^^^zSyntaxError: invalid syntax)r+r
splitlinesr8)r3r*traceback_linesexpected_liness    r!*test_interactive_syntax_error_correct_linezJTestInteractiveModeSyntaxErrors.test_interactive_syntax_error_correct_linesm(1*
*
!++--be4



	
.99999r#N)r>r?r@rJrAr#r!rCrCs#
:
:
:
:
:r#rC__main__)rrunittestrtextwraprtest.supportrrrtest.support.script_helperrSkipTestrSTDOUTr"r+TestCaser-rCr>mainrAr#r!<module>rTsL'



				RRRRRRRRRR222222?
(
=
>
>>(_Z5F"""""8E.E.E.E.E.!2E.E.E.P:::::h&7:::$zHMOOOOOr#