Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.133.157.86
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_compiler.pyo
�
?��cc@sKddlZejjdde�ZddlmZddlZddl	Z	ddl
Z
ddlZddlmZddl
m
Z
dZd	efd
��YZdejfd��YZejjejjejjfZd
dd��YZd\ZZd\ZZgeed�edd��D]\ZZ ee f^q$Z!e!de!dd!idd6ZiZd�eed�edd��D�Zd�ed�D�Z"dhZ"d Z#d!Z#gZ!ddgZ!e!r�n
eeZZy	e$GHWn
dZ$nXe$d7Z$zee7ZWddZXddl%Td�Z&e'dkrGe&�ndS("i����Ntcompilert
deprecated(tflatten(trandom(tStringIOii<tTrivialContextcBseZd�Zd�ZRS(cCs|S(N((tself((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt	__enter__scGsdS(N((Rtexc_info((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt__exit__s(t__name__t
__module__RR	(((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyRs	tCompilerTestcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs�tj�t}tjjtj�}tjj}xz|gD]o}xfdD]^}|tj�kr�tj�t}t	j
dIJt	j
j�n|jd�s�qHnt
r�t�dkr�qHntjj||�}tjjr�dG|GHnt|d�}|j�}|j�d|ks(d|krG|jttj||d	�qHytj||d	�WqHtk
r�}	t|	j�}
|
jd
|�t|
�|	_�qHXqHWq;WdS(Ns
test_os.pys1  testCompileLibrary still working, be patient...s.pyg\��(\�?t	compilingtUt	badsyntaxt
bad_codingtexecsin file %s](s
test_os.py(ttimet_PRINT_WORKING_MSG_INTERVALtostpathtdirnamet__file__ttestttest_supportt
TEST_HOME_DIRtsyst
__stdout__tflushtendswithtTEST_ALLRtjointverbosetopentreadtclosetassertRaisestSyntaxErrorRtcompilet	Exceptiontlisttargstappendttuple(Rt	next_timetlibdirttestdirtdirtbasenameRtftbufteR*((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestCompileLibrarys<

cCstjddd�dS(Nsclass foo():pass

s<string>R(RR'(R((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestNewClassSyntax?scCstjddd�dS(Nsdef g(): yield

s<string>R(RR'(R((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt
testYieldExprBscsc�fd�}ejddd�}|i|d6U�jeejd��jeejd�dS(Ncs.�j||fdidd6dd6f�dS(Niiitxity(ii(tassertEqual(R*tkwargs(R(s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyR2Fssf(x=1, *(2, 3), y=4)s<string>RR2sfoo(a=1, b)sfoo(1, *args, 3)(RR'R%R&tparse(RR2tc((Rs9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestKeywordAfterStarargsEs
cBsYejddd�}i}||U|j|jd�d�|j|jd�d�dS(Ns)try:
 1//0
except:
 e = 1
finally:
 f = 1s<string>RR4iR2(RR'R:tget(RR=tdct((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestTryExceptFinallyNs	cCs|jttjd�dS(Nsdef foo(a=1, b): pass(R%R&RR<(R((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestDefaultArgsWscBsfejddd�}|jd|j�ejddd�}i}||U|j|djd�dS(Ns"doc"s<string>Rt__doc__sdef f():
 "doc"R2tdoc(RR'tassertIntco_namesR:RC(RR=tg((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestDocstringsZscCsBt}|jd�r"|d }ntj|�}|j|�dS(Ns.pycs.pyoi����(s.pycs.pyo(RRRt	parseFiletcheck_lineno(Rtfilenamettree((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt
testLineNobs

cCs;y|j|�Wn#tk
r6|jG|jGH�nXdS(N(t
_check_linenotAssertionErrort	__class__tlineno(Rtnode((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyRJjs

cCs�|jtkra|j|jtd|j|jf�|j|jdkd|j|jf�nx!|j�D]}|j|�qnWdS(Nslineno=%s on %si(RPtNOLINENOtassertIsInstanceRQtintt
assertTruet
getChildNodesRJ(RRRtchild((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyRNqscCsK|jtddgg�ddg�|jtddf�ddg�dS(Nii(i(R:R(R((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestFlattenzs%cBs@ejddd�}i}||U|j|jd�d�dS(NsHdef g():
    a = 1
    def f(): return a + 2
    return f()
result = g()s<string>Rtresulti(RR'R:R?(RR=R@((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestNestedScope~s		cCs8tjddd�}|jt|�dd	d
g�dS(NsKlist((i,j) for i in range(3) if i < 3           for j in range(4) if j > 2)s<string>tevaliiii(ii(ii(ii(RR'R:R\(RR=((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt
testGenExp�s		cCsltjddd�}|jt|�dddh�tjddd�}|jt|�dddh�dS(Ns	{1, 2, 3}s<string>R\iiis
{1, 2, 3,}(RR'R:R\(RR=((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestSetLiteral�scCs�tjddd�}|jt|�idd6dd6dd6�tjddd�}|jt|�idd6dd6dd6�dS(	Ns{1:2, 2:3, 3:4}s<string>R\iiiis{1:2, 2:3, 3:4,}(RR'R:R\(RR=((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestDictLiteral�s+cCsrtjddd�}|jt|�dddh�tjddd�}|jt|�ddddd	h�dS(
Ns{x for x in range(1, 4)}s<string>R\iiisE{x * y for x in range(3) if x != 0       for y in range(4) if y != 0}ii(RR'R:R\(RR=((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestSetComp�s		cCs}tjddd�}|jt|�idd6dd6dd6�tjddd�}|jt|�idd	6dd
6�dS(Ns{x:x+1 for x in range(1, 4)}s<string>R\iiiisO{(x, y) : y for x in range(2) if x != 0            for y in range(3) if y != 0}(ii(ii(RR'R:R\(RR=((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestDictComp�s+		cBsGejddd�}ied6}||U|j|jd�d�dS(Nsgfrom __future__ import with_statement
def f():
    with TrivialContext():
        return 1
result = f()s<string>RRRZi(RR'RR:R?(RR=R@((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestWith�s		
cBsGejddd�}ied6}||U|j|jd�d�dS(Nsmfrom __future__ import with_statement
def f():
    with TrivialContext() as tc:
        return 1
result = f()s<string>RRRZi(RR'RR:R?(RR=R@((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestWithAss�s		
cs|g�dd	�fd��Y}ejddd�}i|d6}||U|j|jd�d�|j�ddg�dS(
NtCtxcs)eZd�Z�fd�Zd�ZRS(cSs
||_dS(N(tn(RRe((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt__init__�scs�j|j�dS(N(R+Re(R(tevents(s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyR�scWsdS(N((RR*((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyR	�s(R
RRfRR	((Rg(s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyRd�s	srfrom __future__ import with_statement
def f():
    with Ctx(1) as tc, Ctx(2) as tc2:
        return 1
result = f()s<string>RRZii((RR'R:R?(RRdR=R@((Rgs9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestWithMult�s		
cBsOejddd�}iid6}i}|||U|j|jd�d�dS(Nsglobal x
x=1s<string>Rt__builtins__R8i(RR'R:R?(Rtcodetd1td2((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt
testGlobal�s


cBsKejddd�}ie�d6}||U|j|dj�d�dS(NsVfrom __future__ import print_function
print("a", "b", sep="**", end="++", file=output)s<string>Rtoutputsa**b++(RR'RR:tgetvalue(RR=R@((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestPrintFunction�s		cCsTyt|dd�Wn9tk
rO}|j|j|�|j|j|�nXdS(NtR(R'R&R:toffsetttext(RtsrcRsRrR4((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt_testErrEnc�s
cCsjd}d}d}|j||d�|j|||d�|j|||d�|j||d�dS(Nsprint '�p�C�\��', '
sprint '12345678', '
s#! -*- coding: ShiftJIS -*-
i(Ru(Rtsjistasciitencdef((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyttestSourceCodeEncodingsError�s(R
RR5R6R7R>RARBRHRMRJRNRYR[R]R^R_R`RaRbRcRhRmRpRuRy(((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyRs0	,																						
				
	tTotocBseZdZRS(t	docstring(R
RRC(((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyRzsiiii
iitacCsi|]\}}||�qS(((t.0R8R9((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pys
<dictcomp>s	cCsh|]}|�qS(((R}R8((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pys	<setcomp>s	i(t*cCs&tjjd�atjjt�dS(Ntcpu(RRtis_resource_enabledRtrun_unittestR(((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt	test_main7st__main__i,((ii(ii((ii((ttest.test_supportRRt
import_moduletTrueRtcompiler.astRRRRtunittestRRRtobjectRtTestCaseRtasttModuletStmttDiscardRSRzR|tbR=tdtziptrangeR8R9tltstttyotmathR�R
(((s9/usr/local/python-2.7/lib/python2.7/test/test_compiler.pyt<module>sN0�!=
(	
	


	
© 2025 GrazzMean