+
    Bi#                     2   ^ RI Ht ]P                  ! RR4       ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RI	Ht ]
P                  t]R,           t^<t ! R	 R
]P                  4      t ! R R]P                  4      t]R8X  d   ]P&                  ! 4        R# R# )    )supportextralargefilez>test requires loads of disk-space bytes and a long time to runN)TemporaryFile)	os_helper)requires_zlib2c                   R   a  ] tR t^t o R tR tR t]! 4       R 4       tR t	Rt
V tR# )TestsWithSourceFilec                t    R  \        R4       4       pRP                  V4      P                  R4      V n        R# )c              3   4   "   T F  pR V,          x  K  	  R# 5i)zTest of zipfile line %d.N ).0is   & */usr/lib/python3.14/test/test_zipfile64.py	<genexpr>,TestsWithSourceFile.setUp.<locals>.<genexpr>    s     KNq.22Ns   i@B 
asciiN)rangejoinencodedata)selfline_gens   & r   setUpTestsWithSourceFile.setUp   s+    KE'NKIIh'..w7	    c           	        \         P                  ! VR V4      ;_uu_ 4       pR\        V P                  4      ,          p\        P
                  ! 4       \        ,           p\        V4       F  pVP                  RV,          V P                  4       V\        P
                  ! 4       8:  g   KB  \        P
                  ! 4       \        ,           p\        RWd3,          \        P                  R7       \        P                  P                  4        K  	  RRR4       \         P                  ! VRV4      ;_uu_ 4       p\        X4       F  pV P                  VP                  RV,          4      V P                  4       X\        P
                  ! 4       8:  g   KQ  \        P
                  ! 4       \        ,           p\        RWd3,          \        P                  R7       \        P                  P                  4        K  	  V P                  VP!                  4       4       RRR4       R#   + '       g   i     EL; i  + '       g   i     R# ; i)wztestfn%dz/  zipTest still writing %d of %d, be patient...)fileNrz/  zipTest still reading %d of %d, be patient...l        )zipfileZipFilelenr   time	monotonic_PRINT_WORKING_MSG_INTERVALr   writestrprintsys
__stdout__flushassertEqualreadassertIsNonetestzip)r   fcompressionzipfp	filecount	next_timenums   &&&    r   zipTestTestsWithSourceFile.zipTest#   s   __Q[11U "S^3I(+FFIY'zC/; 00 $ 03N NIE$%,/NN< NN((* ( 2$ __Q[11UY'  J,<!=tyyI 00 $ 03N NIE$%,/NN< NN((* ( emmo. 21% 211$ 211s'   BH#+A%H#8AH7BH7#H4	7I	c                    \        4       ;_uu_ 4       pV P                  V\        P                  4       V P	                  VP
                  4       R R R 4       V P                  \        \        P                  4       R #   + '       g   i     L6; iN)r   r7   r"   
ZIP_STOREDassertFalseclosedTESTFN2r   r1   s   & r   
testStoredTestsWithSourceFile.testStoredE   sV     __LLG../QXX&  	Wg001 _   <A==B	c                    \        4       ;_uu_ 4       pV P                  V\        P                  4       V P	                  VP
                  4       R R R 4       V P                  \        \        P                  4       R #   + '       g   i     L6; ir:   )r   r7   r"   ZIP_DEFLATEDr<   r=   r>   r?   s   & r   testDeflated TestsWithSourceFile.testDeflatedM   sV     __LLG001QXX&  	Wg223 _rB   c                :    \         P                  ! \        4       R # r:   )r   unlinkr>   r   s   &r   tearDownTestsWithSourceFile.tearDownV   s    !r   )r   N)__name__
__module____qualname____firstlineno__r   r7   r@   r   rE   rJ   __static_attributes____classdictcell____classdict__s   @r   r
   r
      s5     8
 /D2 _4 4" "r   r
   c                   2   a  ] tR t^Zt o R tR tR tRtV tR# )
OtherTestsc           	         \         P                  ! \        R RR7      ;_uu_ 4       p^dVn        R	p\	        V4       F1  pVP                  RV,          RV^,          ^9,          ,          4       K3  	  V P                  \        VP                  4       4      V4       RRR4       \         P                  ! \        RR7      ;_uu_ 4       pV P                  \        VP                  4       4      X4       \	        V4       FQ  pVP                  RV,          4      P                  R4      pV P                  VRV^,          ^9,          ,          4       KS  	  RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)
r   Tmode
allowZip64foo%08d%dNr!   rX   r     )r"   r#   TESTFNdebugr   r(   r-   r$   namelistr.   decode)r   zipfnumfilesr   zipf2contents   &     r   testMoreThan64kFilesOtherTests.testMoreThan64kFiles[   s
    __V#$??4DJ'H8_i!mTQTBY-?@ %S18< @ __V#..%S!12H=8_**Y]3::7C  $!Q$)*<= % /. @? /..s   A3EB
E,E)	,E=	c           	        \         P                  ! \        R RR7      ;_uu_ 4       p^dVn        Rp\	        V4       F1  pVP                  RV,          RV^,          ^9,          ,          4       K3  	  V P                  \        VP                  4       4      V4       V P                  \         P                  4      ;_uu_ 4        VP                  RV,          R4       RRR4       V P                  \        VP                  4       4      V4       RRR4       \         P                  ! \        RRR7      ;_uu_ 4       p^dVn        V P                  \        VP                  4       4      X4       V P                  \         P                  4      ;_uu_ 4        VP                  RV,          R4       RRR4       V P                  \        VP                  4       4      V4       RRR4       \         P                  ! \        RRR7      ;_uu_ 4       p^dVn        V P                  \        VP                  4       4      X4       Rp\	        W$4       F1  pVP                  RV,          RV^,          ^9,          ,          4       K3  	  V P                  \        VP                  4       4      V4       RRR4       \         P                  ! \        R	R
7      ;_uu_ 4       pV P                  \        VP                  4       4      X4       \	        V4       FQ  pVP                  RV,          4      P                  R4      pV P                  VRV^,          ^9,          ,          4       KS  	  RRR4       R#   + '       g   i     EL; i  + '       g   i     ELv; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     R# ; i)r   FrW   rZ   r[   r   NaTr!   r\   r   i  r]   )r"   r#   r^   r_   r   r(   r-   r$   r`   assertRaisesLargeZipFiler.   ra   )r   rb   rc   r   	numfiles2rd   re   s   &      r   testMoreThan64kFilesAppend%OtherTests.testMoreThan64kFilesAppendk   s   __V#%@@DDJ$H8_i!mTQTBY-?@ %S18<""7#7#788i(2C8 9S18< A __V#%@@DDJS18<""7#7#788i(2C8 9S18< A __V#$??4DJS18<(I8/i!mTQTBY-?@ 0S19= @ __V#..%S!12I>9%**Y]3::7C  $!Q$)*<= & /.' 988 A@@ 988 A@@ @?? /..sc   BM8 M$	1M88AN N	*1N BN4B
O$M5/	M88N		N	N  N1	4O	O	c                n    \         P                  ! \        4       \         P                  ! \        4       R # r:   )r   rH   r^   r>   rI   s   &r   rJ   OtherTests.tearDown   s     !r   r   N)	rL   rM   rN   rO   rf   rm   rJ   rP   rQ   rR   s   @r   rU   rU   Z   s     > >@" "r   rU   __main__)testr   requiresr"   unittestr%   r*   tempfiler   test.supportr   r   r^   r>   r'   TestCaser
   rU   rL   mainr   r   r   <module>ry      s    
   H
   
 " " &			
3, ! :"(++ :"z3""" 3"j zMMO r   