python (3.11.7)

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

e	ddlZddlZddlmZddlmZeZdddddd	d
ddZGd
dZ	Gddej
ZGddej
Ze
dkrejdSdS)N)StringIO)supportct|SNprintargssependfiles    C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_print.py<lambda>rs
UD\ct|d|iS)Nr
rr	s    rrrsUt%<%<%<rct|d|iS)Nrrr	s    rrrUT%:s%:%:rct|||dS)N)rr
rr	s    rrrUs%E%E%Erct|d|iS)Nrrr	s    rrrrrct|||dS)N)rr
rr	s    rrrrrct|||dS)Nrrrr	s    rrrsUds%C%C%Crct||||dS)Nrrr
rr	s    rrrsUs$%N%N%Nr))FFF)FFT)FTF)FTT)TFF)TFT)TTF)TTTceZdZdZdZdS)ClassWith__str__c||_dSrxselfr s  r__init__zClassWith__str__.__init__$s
rc|jSrrr"s r__str__zClassWith__str__.__str__'s	v
rN)__name__
__module____qualname__r#r&rrrr#s2rrc*eZdZ	eeefdZdZdZdS)	TestPrintct|tu|tu|tuf}tj5}|||||dddn#1swxYwY|||dSr)dispatch
NotDefinedrcaptured_stdoutassertEqualgetvalue)r"expectedr
rrr
fnts        rcheckzTestPrint.check.ss*,*,:-/0
$
&
&	%!BtS#t$$$	%	%	%	%	%	%	%	%	%	%	%	%	%	%	%	
x00000sAAActtffd	}|dd|dd|dd|dd	|d
d|dd	d
|ddd|ddd|dddd|ddd
d|ddd|ddd|dd|ddd|ddd|dddd|d td
f|d!td"d#fttdd$ttdd$t
tdd%dS)&Nc||||t}d||||||dS)Nrr)r6rr1r2)r3r
rror"s     rr zTestPrint.test_print.<locals>.x@sl
JJx3CJ888

AJJr4ScJ:::
QZZ\\844444r
r*a
)azNone
rz1 2
)z1   2
)r> r?z1*2
*)rz1 s)r>sr9)rza
b
)r=bz1.01)g?r>rz1*a*1.3+)r>r=g?+za

b
)r<rCz+ +
)r@rEza
 b
z*
zabc 1
abcr>)r
)r/rassertRaises	TypeErrorrAttributeErrorr!s` r
test_printzTestPrint.test_print?s",*	5	5	5	5	5	5	
$	%	(G	'6	)[!!!	'6s####	%r""""	(JD))))	&(++++	*m#6666	*l----	+(c2222	)\"""	)\t,,,,	)\t,,,,	)\t6666	%"3'')***	)&u--q1222	
)UBA666)UBA666.%"=====rcGdd}|}td|ddtd|ddtd|d	
||jd||jdGdd
}|t
td|d
dS)Nc eZdZdZdZdZdS),TestPrint.test_print_flush.<locals>.filelikec"d|_d|_dS)Nr9r)writtenflushedr%s rr#z5TestPrint.test_print_flush.<locals>.filelike.__init__js! rc&|xj|z
c_dSr)rPr"strs  rwritez2TestPrint.test_print_flush.<locals>.filelike.writens#rc&|xjdz
c_dS)Nr>)rQr%s rflushz2TestPrint.test_print_flush.<locals>.filelike.flushqs!rN)r'r(r)r#rUrWr*rrfilelikerNisA
!
!
!
$
$
$
"
"
"
"
"rrXr>r9T)r
rrWr?rGF)r
rWz123
ceZdZdZdZdS)+TestPrint.test_print_flush.<locals>.noflushcdSrr*rSs  rrUz1TestPrint.test_print_flush.<locals>.noflush.write}srctr)RuntimeErrorr%s rrWz1TestPrint.test_print_flush.<locals>.noflush.flushs""rN)r'r(r)rUrWr*rrnoflushrZ|s2



#
#
#
#
#rr^)rr1rPrQrHr])r"rXfr^s    rtest_print_flushzTestPrint.test_print_flushgs		"		"		"		"		"		"		"		"
HJJ
aaRt,,,,
aaRt,,,,
aau%%%%G,,,A&&&	#	#	#	#	#	#	#	#	
,qwwyyMMMMMrN)r'r(r)r/r6rKr`r*rrr,r,+sX7*:1111"&>&>&>PNNNNNrr,c:eZdZ	dZdZdZdZdZdZdZ	dS)	TestPy2MigrationHintcd}|t5}t|dddn#1swxYwY|dt	|jdS)Nzprint "Hello World"?Missing parentheses in call to 'print'. Did you mean print(...)rHSyntaxErrorexecassertInrT	exceptionr"python2_print_strcontexts   rtest_normal_stringz'TestPy2MigrationHint.test_normal_string1


{
+
+	$w"###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$	


WG%&&	(	(	(	(	(
9==cd}|t5}t|dddn#1swxYwY|dt	|jdS)Nzprint "Hello World",rdrerjs   rtest_string_with_soft_spacez0TestPy2MigrationHint.test_string_with_soft_spaces2


{
+
+	$w"###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$	


WG%&&	(	(	(	(	(rocd}|t5}t|dddn#1swxYwY|dt	|jdS)Nzprint  "Hello World", rdrerjs   r%test_string_with_excessive_whitespacez:TestPy2MigrationHint.test_string_with_excessive_whitespaces4


{
+
+	$w"###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$	


WG%&&	(	(	(	(	(rocd}|t5}t|dddn#1swxYwY|dt	|jdS)Nz.if 1:
            print "Hello World"
        rdrerjs   r#test_string_with_leading_whitespacez8TestPy2MigrationHint.test_string_with_leading_whitespaces

{
+
+	$w"###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$	


WG%&&	(	(	(	(	(rocd}|t5}t|dddn#1swxYwY|dt	|jdS)Nzprint p;rdrerjs   rtest_string_with_semicolonz/TestPy2MigrationHint.test_string_with_semicolons&


{
+
+	$w"###	$	$	$	$	$	$	$	$	$	$	$	$	$	$	$	


WG%&&	(	(	(	(	(rocd}|t5}t|dddn#1swxYwY|dt	|jdS)Nzfor i in s: print irdrerjs   r test_string_in_loop_on_same_linez5TestPy2MigrationHint.test_string_in_loop_on_same_linernroc|t5}ttjz	dfdddn#1swxYwY|dt
|j|t5}tdz	dddn#1swxYwY|dt
|j|t5}ttjz	dddn#1swxYwY|	dt
|j|t5}ttjzdddn#1swxYwY|	dt
|jGdd}|
t|z	ddS)Nmessagez6Did you mean "print(<message>, file=<output_stream>)"?*z
Did you mean zDid you meanceZdZdZdS)\TestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration.<locals>.OverrideRRShiftcdS)Nr|r*)r"lhss  r__rrshift__zhTestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration.<locals>.OverrideRRShift.__rrshift__srrN)r'r(r)rr*rrOverrideRRShiftr~s#




rr)rHrIrsysstderrrhrTrimaxassertNotInr1)r"rlrs   r.test_stream_redirection_hint_for_py2_migrationzCTestPy2MigrationHint.test_stream_redirection_hint_for_py2_migrations


y
)
)	+WSZ**	+	+	+	+	+	+	+	+	+	+	+	+	+	+	+

*+.w/@+A+A	C	C	C


y
)
)	WRKK															

*+.w/@+A+A	C	C	C

y
)
)	W3:															#g.?*@*@AAA

y
)
)	 WSZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 W->)?)?@@@									
//"3"33R88888sE>AAB""B&)B&/DDDE>>FFN)
r'r(r)rmrqrsrurwryrr*rrrbrbs((((((((((((((((((99999rrb__main__)unittestriortestrobjectr/r.rTestCaser,rbr'mainr*rr<module>rsF




VXX
	21<<::EE::EECCNN!*WNWNWNWNWN!WNWNWNtW9W9W9W9W98,W9W9W9vzHMOOOOOr