python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_zipfile64.cpython-311.opt-1.pyc

eoddlmZejddddlZddlZddlZddlZddlZddlm	Z	ddl
mZddl
mZej
Z
e
dzZd	ZGd
dejZGdd
ejZedkrejdSdS))supportextralargefilez>test requires loads of disk-space bytes and a long time to runN)
TemporaryFile)	os_helper)
requires_zlib2<cLeZdZdZdZdZedZdZdS)TestsWithSourceFilec"dtdD}d|d|_t	t
d5}||jddddS#1swxYwYdS)Nc3 K|]	}d|zV
dS)zTest of zipfile line %d.N).0is  G/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_zipfile64.py	<genexpr>z,TestsWithSourceFile.setUp.<locals>.<genexpr> s(KKq.2KKKKKKi@B
asciiwb)rangejoinencodedataopenTESTFNwrite)selfline_genfps   rsetUpzTestsWithSourceFile.setUpsKKE'NNKKKIIh''..w77	&$

	 2HHTY	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 sBBBctj|d|5}dt|jz}t	jtz}t|D]}|d|z|j|t	jkrYt	jtz}td||fztjtj	dddn#1swxYwYtj|d|5}t|D]}|
|d|z|j|t	jkrYt	jtz}td||fztjtj	ddddS#1swxYwYdS)Nwlztestfn%dz/  zipTest still writing %d of %d, be patient...)filerz/  zipTest still reading %d of %d, be patient...)zipfileZipFilelenrtime	monotonic_PRINT_WORKING_MSG_INTERVALrwritestrprintsys
__stdout__flushassertEqualread)rfcompressionzipfp	filecount	next_timenums       rzipTestzTestsWithSourceFile.zipTest'sT
_Q[
1
1	+U"S^^3I((+FFIY''
+
+zC/;;; 0 000 $ 0 03N NIE)$%,/N<<<<N((***
+	+	+	+	+	+	+	+	+	+	+	+	+	+	+	+$_Q[
1
1		+UY''
+
+  J,<!=!=tyIII 0 000 $ 0 03N NIE)$%,/N<<<<N((***
+		+		+		+		+		+		+		+		+		+		+		+		+		+		+		+		+		+		+s%CC77C;>C;B4GG!Gct5}||tj||jdddn#1swxYwY|ttjdSN)rr9r&
ZIP_STOREDassertFalseclosedTESTFN2rr3s  r
testStoredzTestsWithSourceFile.testStoredFs__	'LLG.///QX&&&	'	'	'	'	'	'	'	'	'	'	'	'	'	'	'	
Wg011111;AAAct5}||tj||jdddn#1swxYwY|ttjdSr;)rr9r&ZIP_DEFLATEDr=r>r?r@s  rtestDeflatedz TestsWithSourceFile.testDeflatedNs__	'LLG0111QX&&&	'	'	'	'	'	'	'	'	'	'	'	'	'	'	'	
Wg233333rBcttfD]5}tj|rtj|6dSr;)rr?ospathexistsremove)rfnames  rtearDownzTestsWithSourceFile.tearDownWsFW_	!	!Ew~~e$$
!	%   	!	!rN)	__name__
__module____qualname__r!r9rArrErLrrrrrsq   +++>222]__44_4!!!!!rrc eZdZdZdZdZdS)
OtherTestsctjtdd5}d|_d}t	|D]$}|d|zd|dzd	zz%|t||dddn#1swxYwYtjtd
5}|t||t	|D]L}|	d|z
d}||d|dzd	zzM	ddddS#1swxYwYdS)
Nr#Tmode
allowZip64dfoo%08d%d9r%rTr)r&r'rdebugrr,r1r(namelistr2decode)rzipfnumfilesrzipf2contents      rtestMoreThan64kFileszOtherTests.testMoreThan64kFiles^s_V#$
?
?
?	=4DJ'H8__
A
A

i!mTQTBY-?@@@@S118<<<	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=_V#
.
.
.	>%S!1!122H===8__
>
>**Y]33::7CC  $!Q$)*<====
>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>s%A3BB #B BE""E&)E&ctjtdd5}d|_d}t	|D]$}|d|zd|dzd	zz%|t|||	tj
5|d|zd
dddn#1swxYwY|t||dddn#1swxYwYtjtdd5}d|_|t|||	tj
5|d|zd
dddn#1swxYwY|t||dddn#1swxYwYtjtdd5}d|_|t||d
}t	||D]$}|d|zd|dzd	zz%|t||dddn#1swxYwYtjtd5}|t||t	|D]L}|d|zd}||d|dzd	zzM	ddddS#1swxYwYdS)Nr#FrSrVirXrYrZr[raTrWr%r\r)
r&r'rr]rr,r1r(r^assertRaisesLargeZipFiler2r_)rr`rar	numfiles2rbrcs       rtestMoreThan64kFilesAppendz%OtherTests.testMoreThan64kFilesAppendns
_V#%
@
@
@	=DDJ$H8__
A
A

i!mTQTBY-?@@@@S118<<<""7#788
9
9

i(2C888
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9S118<<<	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=_V#%
@
@
@	=DDJS118<<<""7#788
9
9

i(2C888
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9S118<<<	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=_V#$
?
?
?	>4DJS118<<<(I8Y//
A
A

i!mTQTBY-?@@@@S119===
	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>_V#
.
.
.	>%S!1!122I>>>9%%
>
>**Y]33::7CC  $!Q$)*<====
>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>	>sBD!/C	D!C	D!C	8D!!D%(D%AH$G
>H
G	HG	8HHH=B)K22K69K6BN88N<?N<cjtjttjtdSr;)runlinkrr?)rs rrLzOtherTests.tearDowns*   !!!!!rN)rMrNrOrdrjrLrrrrQrQ]sB>>> >>>@"""""rrQ__main__)testrrequiresr&rGunittestr)r.tempfilertest.supportrrrr?r+TestCaserrQrMmainrrr<module>rusA
H




""""""""""""&&&&&&		
3,!=!=!=!=!=!(+=!=!=!@3"3"3"3"3""3"3"3"jzHMOOOOOr