asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T usr/lib64/python2.7/idlelib/idle_test/test_io.pyo000064400000026415151027764570015652 0ustar00 {fc@sddlZddlZddlmZmZddlmZdefdYZ de e fdYZ de e fd YZ d e efd YZd dd YZdejfdYZdejfdYZdZedkrendS(iN(tPseudoInputFiletPseudoOutputFile(t test_supporttBasecBs>eZdZdZdZdZdZdZRS(cCsdt|jS(Ns%s:str(ttypet__name__(tself((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__str__scCsdt|jS(Ns %s:unicode(RR(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt __unicode__ scCsdS(Ni((R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__len__ scCs tdS(Ntabc(titer(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__iter__scGsdt|jS(Ns%s:item(RR(Rtargs((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt __getitem__scGsdt|jS(Ns%s:slice(RR(RR ((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt __getslice__s(Rt __module__RRR R RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRs      tScBseZRS((RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRstUcBseZRS((RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRstBAcBseZRS((RR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRst MockShellcBs>eZdZdZdZdZdZdZRS(cCs|jdS(N(treset(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt__init__scGs|jj|dS(N(twrittentappend(RR ((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytwrite"scCs |jjS(N(tlinestpop(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytreadline%scCsdS(N((R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytclose(scCs g|_dS(N(R(R((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR+scCs t|ddd|_dS(Ni(tlistR(RR((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pytpush.s(RRRRRRRR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRs      tPseudeOutputFilesTestcBs5eZdZdZdZdZdZRS(cCst}t|dd}|j|tj|j|jd|j|j|j|j |j|j d|j |j |j |j|j |j|j |j|j |jdS(Ntstdoutsutf-8s(RRtassertIsInstancetiot TextIOBaset assertEqualtencodingt assertIsNoneterrorstnewlinestnamet assertFalsetclosedt assertTruetisattytreadabletwritabletseekable(Rtshelltf((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt test_misc3s cCst}t|dd}|jt|j|jt|j|jt|jd|jt|jd|jt|jddS(NR!sutf-8i( RRt assertRaisestIOErrortfilenottelltseektreadR(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyttest_unsupportedAs cCst}t|dd}|jd|j|jd g|j|jd|j|jd g|j|jd|j|jd g|j|jtd|j|jd g|jt|jddt|j|jt d|j|jd g|jt|jddt|j|jt d|j|jdg|jt|jddt |j|j t |j|j|jg|j t |jd|j|jg|j t |jdd|j|jgdS(NR!sutf-8ttestststutèstii{tspam(R<R!(ststR!(utèstR!(ststR!(ststR!(utèstR!(RRRR%RRRRtstrRRtunicodeR5t TypeError(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt test_writeJs:       ! ! ! cCst}t|dd}|jg|j|jg|j|jddg|j|jd dg|j|jddg|j|jddg|j|jddg|j|jddg|j|jtd g|j|jdg|jt|jd d t|j|jt d g|j|jdg|jt|jd d t|j|jt d g|j|jdg|jt|jd d t |j|j t |j|j|jg|j t |jd |j|jg|j t |jd g|j|jg|j t |jgg|j|jgdS(NR!sutf-8sone ttwoson stwuonè utwòststiutèsti{(sone R!(RBR!(son R!(stwR!(uonè R!(utwòR!(ststR!(ststR!(utèstR!(RRt writelinesR%RRRRR>RRR?R5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyttest_writelinesksJ            ! ! ! cCst}t|dd}|j|j|jd|j|j|j|jt|jd|j |j dg|j|jt |jddS(NR!sutf-8R<txi(R<R!( RRR+R,RRR-R5t ValueErrorR%RR@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt test_closes    (RRR4R;RARDRG(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR 2s   ! )tPseudeInputFilesTestcBs>eZdZdZdZdZdZdZRS(cCst}t|dd}|j|tj|j|jd|j|j|j|j |j|j d|j |j |j |j|j |j|j |j|j |jdS(Ntstdinsutf-8s(RRR"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR4s cCst}t|dd}|jt|j|jt|j|jt|jd|jt|jd|jt|jdgdS(NRIsutf-8iRE( RRR5R6R7R8R9RRC(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyR;s cCs~t}t|dd}|jdddg|j|jd|jdddg|j|jdd|jdddg|j|jdd|jddddg|j|jd d |j|jd d |j|jd d|jddg|j|jdd|jt|jd|jt|jd|jt|jdddS(NRIsutf-8sone stwo tsone two isthree itonise ti s wo three ig?t1i(RRRR%R:tNoneR5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt test_reads" cCst}t|dd}|jddddg|j|jd|j|jdd|j|jdd|jdg|j|jd|j|jd|jd d d g|j|jd |j|jd |jdddg|j|jd d |j|jdd|j|jdd|j|jdd|jddg|j|jdd|jt|jd|jt|jd|jt|jdddS(NRIsutf-8sone stwo sthree sfour isone two toneRBtthreeiRKites i iRJg?RL( RRRR%RRMR5R@t readlines(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt test_readlines, cCst}t|dd}|jdddg|j|jddg|jdddg|j|jdddg|jdddg|j|jdddg|jdddg|j|jdddg|jdddg|j|jddg|jdddg|j|jd ddg|jdddg|jt|jd |jt|jd |jt|jd d dS( NRIsutf-8sone stwo RJiiiig?RLi(RRRR%RRRMR5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyttest_readliness$ cCst}t|dd}|jdddg|j|j|j|jd|j|j|j|j|jd|jt |jddS(NRIsutf-8sone stwo RJi( RRRR+R,R%RRR5R@(RR2R3((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRGs  (RRR4R;RNRSRTRG(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyRHs     cCstjttdS(N(tsupportt run_unittestR RH(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyt test_mainst__main__((tunittestR#tidlelib.PyShellRRR<RRUtobjectRR>RR?Rt bytearrayRRtTestCaseR RHRWR(((s1/usr/lib64/python2.7/idlelib/idle_test/test_io.pyts  of