|p SSKrSSKrSSKJr SSKJr \"5rSSSSSS S S S .r"S S5r "SS\R5r "SS\R5r \ S:Xa\R"5 gg)N)StringIO)supportc[U6$Nprintargssependfiles 6/opt/alt/python313/lib64/python3.13/test/test_print.pyrsUD\c[USU06$)Nr rr s rrrsUt%<%TRXX#S9 [5nTRSXX4S9 TRUR5U5 g)Nrr)r<rr7r8)r9r r r or#s rr!TestPrint.test_print..x@sH JJx3J 8 A JJr4cJ :   QZZ\8 4r r/a )azNone rz1 2 )z1 2 )rF rGz1*2 *)r z1 s)rFsr@)r za b )rEbz1.01)g?rFrz1*a*1.3+)rFrEg?+za b )rDrKz+ + )rHrMza b z* zabc 1 abcrF)r )r5r assertRaises TypeErrorrAttributeErrorr"s` r test_printTestPrint.test_print?s8",* 5 $  % (G '6 )[! '6s# %r" (JD) &(+ *m#6 *l- +(c2 )\" )\t, )\t, )\t6 %"3')* )&u-q12 )UBA6 )UBA6 .%"=rc0"SS5nU"5n[SUSSS9 [SUSSS9 [SUS S 9 URURS 5 URURS5 "S S 5nUR [ [SU"5SS 9 g)Nc&\rSrSrSrSrSrSrg),TestPrint.test_print_flush..filelikeic SUlSUlg)Nr@r)writtenflushedr's rr$5TestPrint.test_print_flush..filelike.__init__js!   rc.U=RU- slgr)rZr#strs rwrite2TestPrint.test_print_flush..filelike.writens # rc.U=RS- slg)NrF)r[r's rflush2TestPrint.test_print_flush..filelike.flushqs ! r)r[rZN)r*r+r,r-r$r`rcr.r/rrfilelikerWis ! $ "rrerFr@T)r r rcrGrOF)r rcz123 c \rSrSrSrSrSrg)+TestPrint.test_print_flush..noflush|cgrr/r^s rr`1TestPrint.test_print_flush..noflush.write}src[er) RuntimeErrorr's rrc1TestPrint.test_print_flush..noflush.flushs""rr/N)r*r+r,r-r`rcr.r/rrnoflushrg|s   #rrn)rr7rZr[rPrl)r#refrns rtest_print_flushTestPrint.test_print_flushgs " " J aaRt, aaRt, aau% G, A& # # ,qwyMrc"SS5n[R"[SS5 [5[l[ U"55 SSS5 g!,(df  g=f)Nc\rSrSrSrSrg)"TestPrint.test_gh130163..XcT[5[l[R"5 g)Nfoo)rsysstdoutr gc_collectr's rr(*TestPrint.test_gh130163..X.__str__s%Z ""$rr/N)r*r+r,r-r(r.r/rrXrts rr|ry)r swap_attrrxrryr)r#r|s r test_gh130163TestPrint.test_gh130163s>     sHd 3!CJ !#J4 3 3s $A A"r/N) r*r+r,r-__doc__r5r<rSrpr~r.r/rrr1r1+s$7*:1"&>PN: rr1cB\rSrSrSrSrSrSrSrSr Sr S r S r g ) TestPy2MigrationHintzoTest that correct hint is produced analogous to Python3 syntax, if print statement is executed as in Python 2. cSnUR[5n[U5 SSS5 URS[ WR 55 g!,(df  N4=f)Nzprint "Hello World"?Missing parentheses in call to 'print'. Did you mean print(...)rP SyntaxErrorexecassertInr_ exceptionr#python2_print_strcontexts rtest_normal_string'TestPy2MigrationHint.test_normal_stringN1   { +w " #, WG%%& (, + A A cSnUR[5n[U5 SSS5 URS[ WR 55 g!,(df  N4=f)Nzprint "Hello World",rrrs rtest_string_with_soft_space0TestPy2MigrationHint.test_string_with_soft_spacesN2   { +w " #, WG%%& (, +rcSnUR[5n[U5 SSS5 URS[ WR 55 g!,(df  N4=f)Nzprint "Hello World", rrrs r%test_string_with_excessive_whitespace:TestPy2MigrationHint.test_string_with_excessive_whitespacesN4   { +w " #, WG%%& (, +rcSnUR[5n[U5 SSS5 URS[ WR 55 g!,(df  N4=f)Nz.if 1: print "Hello World" rrrs r#test_string_with_leading_whitespace8TestPy2MigrationHint.test_string_with_leading_whitespacesR   { +w " #, WG%%& (, +rcSnUR[5n[U5 SSS5 URS[ WR 55 g!,(df  N4=f)Nzprint p;rrrs rtest_string_with_semicolon/TestPy2MigrationHint.test_string_with_semicolonsN&   { +w " #, WG%%& (, +rcSnUR[5n[U5 SSS5 URS[ WR 55 g!,(df  N4=f)Nzfor i in s: print irrrs r test_string_in_loop_on_same_line5TestPy2MigrationHint.test_string_in_loop_on_same_linerrcUR[5n[[R- S4 SSS5 UR S[ WR55 UR[5n[S- SSS5 UR S[ UR55 UR[5n[[R- SSS5 URS[ UR55 UR[5n[[R- SSS5 URS[ UR55 "SS5nUR[U"5- S5 g!,(df  GN]=f!,(df  GN#=f!,(df  N=f!,(df  N=f)Nmessagez6Did you mean "print(, file=)"?*z Did you mean z Did you meanc\rSrSrSrSrg)\TestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration..OverrideRRShiftcg)Nrr/)r#lhss r __rrshift__hTestPy2MigrationHint.test_stream_redirection_hint_for_py2_migration..OverrideRRShift.__rrshift__srr/N)r*r+r,r-rr.r/rrOverrideRRShiftrs rr) rPrQrrxstderrrr_rmax assertNotInr7)r#rrs r.test_stream_redirection_hint_for_py2_migrationCTestPy2MigrationHint.test_stream_redirection_hint_for_py2_migrationsJ   y )W SZZ  ** *+.w/@/@+A C   y )W RK* *+.w/@/@+A C  y )W 3:: * #g.?.?*@A  y )W SZZ * W->->)?@   /"33R87* )* ) * ) * )s/F2 F>F*F; F F'* F8; G r/N) r*r+r,r-rrrrrrrrr.r/rrrrs*((((((9rr__main__)unittestrxiortestrobjectr5r4rTestCaser1rr*mainr/rrrs  X  2<:E:ECN! *b!!bJW98,,W9v z MMOr