python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_zipfile64.cpython-312.opt-1.pyc

Αe#"ddlmZejddddlZddlZddlZddlZddlmZddl	m
Z
ddl	mZe
jZedzZ
d	ZGd
dejZGdd
ejZedk(rej&yy))supportextralargefilez>test requires loads of disk-space bytes and a long time to runN)
TemporaryFile)	os_helper)
requires_zlib2<c>eZdZdZdZdZedZdZy)TestsWithSourceFilecrdtdD}dj|jd|_y)Nc3&K|]	}d|zyw)zTest of zipfile line %d.N).0is  G/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_zipfile64.py	<genexpr>z,TestsWithSourceFile.setUp.<locals>.<genexpr> sKq.2Ksi@B
ascii)rangejoinencodedata)selfline_gens  rsetUpzTestsWithSourceFile.setUps+KE'NKIIh'..w7	ctj|d|5}dt|jz}t	j
tz}t|D]}|jd|z|j|t	j
ks:t	j
tz}td||fztjtjj	dddtj|d|5}tD]}|j|jd|z|jt	j
ksIt	j
tz}td||fztjtjj|j|j!dddy#1swYxYw#1swYyxYw)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assertIsNonetestzip)rfcompressionzipfp	filecount	next_timenums       rzipTestzTestsWithSourceFile.zipTest#s
__Q[
1	+U"S^3I(+FFIY'
+zC/; 00 $ 03N NIE)$%,/NN<NN((*
+	+$__Q[
1	/UY'
+  J,<!=tyyI 00 $ 03N NIE)$%,/NN<NN((*
+
emmo.	/	/%	+	+$	/	/s'A8G$AG$AG0!A:G0$G-0G9ct5}|j|tj|j	|j
ddd|jttjy#1swY.xYwN)rr6r!
ZIP_STOREDassertFalseclosedTESTFN2rr0s  r
testStoredzTestsWithSourceFile.testStoredEs\_	'LLG../QXX&	'	
Wg001	'	'<A44A=ct5}|j|tj|j	|j
ddd|jttjy#1swY.xYwr8)rr6r!ZIP_DEFLATEDr:r;r<r=s  rtestDeflatedz TestsWithSourceFile.testDeflatedMs\_	'LLG001QXX&	'	
Wg223	'	'r?c6tjtyr8)runlinkr<rs rtearDownzTestsWithSourceFile.tearDownVs!rN)	__name__
__module____qualname__rr6r>rrBrFrrrrrs-8
 /D2_44"rrceZdZdZdZdZy)
OtherTestscvtjtdd5}d|_d}t	|D] }|jd|zd|dzd	zz"|j
t|j|dddtjtd
5}|j
t|jt	|D]@}|jd|zjd}|j
|d|dzd	zzB	dddy#1swYxYw#1swYyxYw)
NrTmode
allowZip64dfoo%08d%d9r rNr)r!r"TESTFNdebugrr'r,r#namelistr-decode)rzipfnumfilesrzipf2contents      rtestMoreThan64kFileszOtherTests.testMoreThan64kFiles[s__V#$
?	=4DJ'H8_
A

i!mTQTBY-?@
AS18<	=__V#
.	>%S!12H=8_
>**Y]3::7C  $!Q$)*<=
>	>	>	=	=	>	>sA!D#!A8D/#D,/D8c~tjtdd5}d|_d}t	|D] }|jd|zd|dzd	zz"|j
t|j||jtj5|jd|zd
ddd|j
t|j|dddtjtdd5}d|_|j
t|j|jtj5|jd|zd
ddd|j
t|j|dddtjtdd5}d|_|j
t|jd
}t	||D] }|jd|zd|dzd	zz"|j
t|j|dddtjtd5}|j
t|jt	|D]@}|jd|zjd}|j
|d|dzd	zzB	dddy#1swYBxYw#1swYxYw#1swYxYw#1swY}xYw#1swYxYw#1swYyxYw)NrFrMrPirRrSrTrUraTrQr rVr)
r!r"rWrXrr'r,r#rYassertRaisesLargeZipFiler-rZ)rr[r\r	numfiles2r]r^s       rtestMoreThan64kFilesAppendz%OtherTests.testMoreThan64kFilesAppendks
__V#%
@	=DDJ$H8_
A

i!mTQTBY-?@
AS18<""7#7#78
9

i(2C8
9S18<	=__V#%
@	=DDJS18<""7#7#78
9

i(2C8
9S18<	=__V#$
?	>4DJS18<(I8Y/
A

i!mTQTBY-?@
AS19=
	>__V#
.	>%S!12I>9%
>**Y]3::7C  $!Q$)*<=
>	>	>'
9
9
	=	=
9
9	=	=	>	>	>	>scBLK331LALL
.1LBL'1A8L33K=	8LL

L	LL$'L03L<chtjttjtyr8)rrDrWr<rEs rrFzOtherTests.tearDowns !rN)rGrHrIr_rerFrrrrKrKZs> >@"rrK__main__)testrrequiresr!unittestr$r)tempfilertest.supportrrrWr<r&TestCaserrKrGmainrrr<module>ros
H

""&			
3,!:"(++:"z3"""3"jzHMMOr