Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_zipimport.cpython-310.pyc
o

�9jA��@s�ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddlm
Z
ddlmZddlmZmZmZmZddlZddlZddlZddlZddlZddlmZmZmZzddlZWneyudZYnwdZe edd	�Z!d
Z"dd�Z#d
d�Z$e��Z%e#e!e%e&e��Z'dZ(dZ)dZ*ej+�,d�Z-ej+�,d�Z.ej/�0e(d�Z1dZ2Gdd�dej3�Z4Gdd�de4�Z5e�6�Gdd�de5��Z7Gdd�dej3�Z8dd�Z9e:d kr�e�;�dSdS)!�N)�support)�
import_helper)�	os_helper)�ZipFile�ZipInfo�
ZIP_STORED�ZIP_DEFLATED)�
extract_tb�
extract_stack�print_tbzHdef get_name():
    return __name__
def get_file():
    return __file__
�<???>�execz def do_raise(): raise TypeError
cCs6t�|�}tjjt�ddt|�d@|d@�|}|S)Nz<iLLr���)�marshal�dumps�	importlib�util�MAGIC_NUMBER�struct�pack�int)�co�mtime�size�data�pyc�r�*/usr/lib/python3.10/test/test_zipimport.py�make_pyc&s
���rcCs|�tjd�S)N�.)�replace�os�sep)�pathrrr�module_path_to_dotted_name-�r$�
ziptestmodule�ziptestpackage�ziptestpackage2�	junk95142z
junk95142.zip�.py�.pycc@seZdZdd�Zdd�ZdS)�ImportHooksBaseTestCasecCsHtjdd�|_tjdd�|_tjdd�|_tj��t��|_dS�N)	�sysr#�	meta_path�
path_hooks�path_importer_cache�clearr�
modules_setup�modules_before��selfrrr�setUp@s

zImportHooksBaseTestCase.setUpcCsJ|jtjdd�<|jtjdd�<|jtjdd�<tj��tj|j�dSr-)	r#r.r/r0r1r2r�modules_cleanupr4r5rrr�tearDownGs

z ImportHooksBaseTestCase.tearDownN)�__name__�
__module__�__qualname__r7r9rrrrr,>sr,c@s�eZdZeZdd�Zefdd�Zefdd�Z	dd�Z
d	d
�Zdd�Zd
d�Z
dd�Zdd�Zej�dd�dd��Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Z d1d2�Z!d3d4�Z"d5d6�Z#d7d8�Z$d9d:�Z%d;d<�Z&d=d>�Z'd?d@�Z(dAdB�Z)dCdD�Z*dEdF�Z+dGdH�Z,dIdJ�Z-dKdL�Z.e�/e0j1dMudN�dOdP��Z2dQdR�Z3dSdT�Z4dUdV�Z5dWdX�Z6dMS)Y�UncompressedZipImportTestCasecCs t��tj��t�|�dSr-)�	linecache�
clearcache�	zipimport�_zip_directory_cacher2r,r7r5rrrr7Ss
z#UncompressedZipImportTestCase.setUpc		Cs�|�tj|�|��D]K\}\}}tj�||�}|dtjkr+tj�|�s*t�	|�qtj�
|�}tj�|�s<t�	|�t|d��
}|�|�Wd�n1sQwYqdS)N����wb)
�
addCleanupr�rmtree�itemsr!r#�joinr"�isdir�makedirs�dirname�open�write)	r6�files�dirName�namerrr#�dname�fprrr�makeTreeZs
�
���z&UncompressedZipImportTestCase.makeTreecKs|�tj|�t|d��2}|��D]\}\}}t|t�|��}|j|_	|�
||�q|�dd�}	|	dur7|	|_Wd�n1sAwY|�dd�}
|
dur�t
|d��}|��}Wd�n1sdwYt
|d��}|�|
�|�|�Wd�dS1s�wYdSdS)N�w�comment�stuff�rbrC)rDr�unlinkrrFr�time�	localtime�compression�
compress_type�writestr�getrTrK�readrL)r6rM�zipName�kw�zrOrr�zinforTrU�frrr�makeZipks*��	
�
"��z%UncompressedZipImportTestCase.makeZipcOs~|j|fi|��tj�dt�t�d�|��}|�d�}|dur%||�|r=|�	�}|�
|tjjtg|�R�|�dSdS)Nrr�call)rdr.r#�insert�TEMP_ZIPr�
import_modulerGr]�get_file�assertEqualr!)r6�expected_extrM�modulesr`�modre�filerrr�doTest�s
�
��z$UncompressedZipImportTestCase.doTestcCs�dtjvr
|�d�dtjvrtjd=dttfi}z	|�d|d�Wnty9|jt	kr6|�
d�YdSYdSw|jtkrF|�
d�dSdS)N�zlibzzlib is a builtin modulezzlib.pyr*z&expected test to not raise ImportErrorz"expected test to raise ImportError)r.�builtin_module_names�skipTestrl�NOW�test_srcro�ImportErrorrZr�failr�r6rMrrr�
testAFakeZlib�s



��
�z+UncompressedZipImportTestCase.testAFakeZlibcCs"tdttfi}|�d|t�dS�Nr*��TESTMODrsrtrorwrrr�testPy��z$UncompressedZipImportTestCase.testPycCs"ttttfi}|�t|t�dSr-)r{�pyc_extrs�test_pycrorwrrr�testPyc�r}z%UncompressedZipImportTestCase.testPyccCs.tdttfttttfi}|�t|t�dSry)r{rsrtr~rrorwrrr�testBoth�s�z&UncompressedZipImportTestCase.testBothc�jd}tj�|�}tj�t|dd�|d�}tdtdftdtd|fi}�fd	d
�}�jd|t|d�dS)N�
state = 'old'�???r
Fr*�
state = 'new'r+�c���|jd�dS)N�old�rj�state�rmr5rr�check��zFUncompressedZipImportTestCase.testUncheckedHashBasedPyc.<locals>.check�re�	rr�source_hash�_bootstrap_external�_code_to_hash_pyc�compiler{rsro�r6�sourcer��bytecoderMr�rr5r�testUncheckedHashBasedPyc�s
��z7UncompressedZipImportTestCase.testUncheckedHashBasedPycz_imp.check_hash_based_pycs�alwayscr�)Nr�r�r
Fr*r�r+r�cr�)N�newr�r�r5rrr��r�zOUncompressedZipImportTestCase.test_checked_hash_based_change_pyc.<locals>.checkr�r�r�rr5r�"test_checked_hash_based_change_pyc�s
��z@UncompressedZipImportTestCase.test_checked_hash_based_change_pyccCs"tdtdfi}|�d|t�dS)Nr*�)r{rsrorwrrr�testEmptyPy�r}z)UncompressedZipImportTestCase.testEmptyPycC�Ftt�}|ddN<tdttfttt|fi}|�d|t�dS)Nr�r*��	bytearrayrr{rsrtr~ro)r6�badmagic_pycrMrrr�testBadMagic�s�z*UncompressedZipImportTestCase.testBadMagicc
Cs�tt�}|ddN<ttt|fi}z|�d|t�|�d�WdStjyF}z|�	|j
t�|�d|j
j
�WYd}~dSd}~ww)Nrr�r*zThis should not be reachedzmagic number)r�rr{r~rsrorvr@�ZipImportError�assertIsInstance�	__cause__ru�assertIn�msg)r6r�rM�excrrr�
testBadMagic2�s��z+UncompressedZipImportTestCase.testBadMagic2cCr�)N��r*r�)r6�badtime_pycrMrrr�testBadMTime�s�z*UncompressedZipImportTestCase.testBadMTimecCs>ttdtt��}tdttfttt|fi}|�d|t�dS)Nrr*)r�test_co�lenrtr{rsr~ro)r6�twenty_thirty_eight_pycrMrrr�
test2038MTime�s
�z+UncompressedZipImportTestCase.test2038MTimecCsBttj}|dtttf|ttttfi}|�t|tt�dS�N�__init__)�TESTPACKr!r"r~rsrr{ro)r6�packdirrMrrr�testPackages

�z)UncompressedZipImportTestCase.testPackagecCsbttj}|ttj}|dtttf|dtttf|ttttfi}|�t|ttt�dSr�)	r�r!r"�	TESTPACK2r~rsrr{ro�r6r��packdir2rMrrr�testSubPackages
�z,UncompressedZipImportTestCase.testSubPackagecCsRttj}|ttj}|tdf|tdf|ttttfi}|�t|ttt�dS�Nr�)	r�r!r"r�rsr{r~rror�rrr�testSubNamespacePackages
�z5UncompressedZipImportTestCase.testSubNamespacePackagec
CsRttj}|ttj}|tdtj}|tdf|ttttf|tdf|tdf|ttttf|tdtttf|ttttfi}|tdf|tdtttf|tdf|tdtttf|ttttfi}tj�	d�}|�
||�t}|�||�t
j�d|�t
j�d|�t�t�}|�dt|j��|j\}	}
|�tj�t�|	�tj�d�|�d|
�tj�d�t�|�tjd�dd	��}|�d
t|j��t|j�d�dtj�d
}|�|dd	�|�t�d�ttf��}|�d|j�tj�d�t�d�ttdf��}|�tj�t�|j�tj�d�d�ttf�}t�|�}|�dt|j��|j\}	}
|�tj�t�|	�tj�d�|�d|
�tj�d�t�d�|tf��}|�tj�t�|j�tj�d�t�d�|tdf��}|�tj�t�|j�tj�d�t�d�|tdf��}|�d|j�tj�d�dS)
N�3r��2�	path1.ziprr����rrB�������)r�r!r"r�rsr{r~rr#�abspathrd�TEMP_DIRrRr.rfrrhrjr��__path__�basename�splitr �listrG�__file__)
r6r�r��packdir3�files1�files2�zip1�zip2rm�p1�p2�mpath�subpkgrrr�testMixedNamespacePackage!sl
��

 �

 ��z7UncompressedZipImportTestCase.testMixedNamespacePackagec
Cs2ttj}|ttj}|tdtj}|tdf|ttttf|tdf|tdf|ttttf|tdtttf|ttttfi}tj�	d�}|�
||�|tdf|tdtttf|tdf|tdtttf|ttttfi}tj�	d�}|�
||�tj�d|�tj�d|�t
�t�}|�dt|j��|j\}	}
|�d|	�tj�d�|�d|
�tj�d�t
�|�tjd	�dd
��}|�dt|j��t|j�d�dtj�d}|�|dd
�|�t
�d	�ttf��}|�d|j�tj�d�t
�d	�ttdf��}|�d|j�tj�d�d	�ttf�}t
�|�}|�dt|j��|j\}	}
|�d|	�tj�d�|�d|
�tj�d�t
�d	�|tf��}|�d|j�tj�d
�t
�d	�|tdf��}|�d|j�tj�d
�t
�d	�|tdf��}|�d|j�tj�d
�dS)Nr�r�r�r�z	path2.ziprr�r�rrBr�r�r�)r�r!r"r�rsr{r~rr#r�rdr.rfrrhrjr�r�r�r r�rGr�)
r6r�r�r�r�r�r�r�rmr�r�r�r�rrr�testNamespacePackagens`
��



z2UncompressedZipImportTestCase.testNamespacePackagec	Cs^ttj}|ttj}|dtttf|dtttf|ttttfdtttfi}|�t	j
t�ttd��(}|�
�D]\}\}}t|t�|��}|j|_d|_|�||�q=Wd�n1scwYt�t�}	|�|	jt�|�|	�t��t���Et�dt�|	�d�}
|� |
�|�!|
tj�|�"|
�d��|
�#d�}|�|
�$d�|j%�|	�#t�}|�|	�$t�|j%�Wd�n1s�wY|	�&d�}
|� |
�|�!|
j'tj�|�"|
j'�d��t(j)�*|
�}|
j'�+|�|�|
j'�$d�|j%�|	�&t�}
t(j)�*|
�}|
j'�+|�|�|	�$t�|j%�t(�,t�j-d}tj.�/tt�}|�||�|�"|	�|d��|�|	�|t��|�"|	�|t��|t}t0|�}t(�,|�}|�|t1j2v�|�3|	�4t��|�3|	�4|��|�|	�$|�|j%�|j5j'}|�3|�4|��|�|�$|�|j%�t�ttjt�}|�|jt�|�|j6ttj�dS)Nr��spamrS�spam�ignorer)7r�r!r"r�r~rsrr{rDrrWrgrrFrrXrYrZr[rTr\r@�zipimporterrj�archive�
assertTrue�
is_package�warnings�catch_warnings�simplefilter�DeprecationWarning�find_module�assertIsNotNoner��assertFalse�load_module�get_filenamer��	find_spec�loaderrr�module_from_spec�exec_modulerhr�r#rGr$r.rl�assertIsNone�
get_source�__spec__�prefix)r6r�r�rMrarOrrrb�zi�find_mod�load_modrm�spec�exec_mod�existing_pack_path�expected_path_path�mod_path�mod_namer��zi2rrr�testZipImporterMethods�sx
���





�



z4UncompressedZipImportTestCase.testZipImporterMethodsc	Csttj}|ttj}|dtttf|dtttf|ttttfdtttfi}|�t	j
t�ttd��(}|�
�D]\}\}}t|t�|��}|j|_d|_|�||�q=Wd�n1scwYt�t�}	|�|	j��|���|	��|�|	j��|���dtttfi}
|�|
�ttd��(}|
�
�D]\}\}}t|t�|��}|j|_d|_|�||�q�Wd�n1s�wY|	��|�|	j��|���|	�d�}|�|�|�|jtj�t� t�|	��|�!|	j�|�"tj#�$|	j%��|�"|	�d��dS)Nr�r�rSr��spam2�a�name_does_not_matter)&r�r!r"r�r~rsrr{rDrrWrgrrFrrXrYrZr[rTr\r@r�rj�_files�keys�invalidate_caches�updater�r�r�r��remover�r�rAr]r�)r6r�r�rMrarOrrrbr��newfiler�rrr�testInvalidateCachessP
���

��


z2UncompressedZipImportTestCase.testInvalidateCachescCsJttj}|ttj}|dtttf|ttttfi}|�t	j
t�ttd��(}|�
�D]\}\}}t|t�|��}|j|_d|_|�||�q/Wd�n1sUwYt�ttj|�}	|�|	jt�|�|	j|�|�|	�t��t���t�dt�|	� t�}
|�|	�!t�|
j"�Wd�n1s�wY|	�#t�}t$j%�&|�}
|j'�(|
�|�|j'�!t�|
j"�|�)|	�ttjd��|�)|	�ttjt��ttj|t}t�|�}
t���6t�dt�|
�*t�}|�+|�|�,|tj�|�)|
�t��|� t�}|�|�!t�|j"�Wd�n	1�s%wY|
�#t�}|�+|�|�,|j'tj�|�)|j'�t��t$j%�&|�}|j'�(|�|�|j'�!t�|j"�ttjt}t-|�}t$�.|�}
|�|t/j0v�|�1|	�2t��|�1|	�2|��|�|	�!|�|
j"�|
j3}|�1|�2|��|�|�!|�|
j"�dS)Nr�rSseggsr�)4r�r!r"r�r~rsrr{rDrrWrgrrFrrXrYrZr[rTr\r@r�rjr�r�r�r�r�r�r�r�r�r�r�r�rrr�r�r�r�r�r�r�r$rhr.rlr�r��
__loader__)r6r�r�rMrarOrrrbr�rmr��pkg_pathr��find_mod_dottedr�r�r�r�rrr�$testZipImporterMethodsInSubDirectory*sz
���

�





��

�
zBUncompressedZipImportTestCase.testZipImporterMethodsInSubDirectorycCs�|�tjt�ttd��}|j|_d}tdd�td�D��}|�||�Wd�n1s.wYt	�
t�}|�||�|��|�
dt|��dS)NrSztestdata.datcss�|]}|VqdSr-r)�.0�xrrr�	<genexpr>ss�z<UncompressedZipImportTestCase.testGetData.<locals>.<genexpr>�zzipimporter object)rDrrWrgrrZ�bytes�ranger\r@r�rj�get_datar��repr)r6rarOrr�rrr�testGetDatans�
z)UncompressedZipImportTestCase.testGetDatacCsFd}tt|dd�tt|��}ttt|fdtdfi}|�t|t�dS)Nz�if 1:  # indent hack
        def get_file():
            return __file__
        if __loader__.get_data("some.data") != b"some data":
            raise AssertionError("bad data")
rr
z	some.dataz	some data)rr�rsr�r{r~ro)r6�srcrrMrrr�testImporterAttrzs�z.UncompressedZipImportTestCase.testImporterAttrcCs^d}tdt|fi}|�|�tj�dt�t�t�}|�	|�
d�d�	|�t|j
d�dS)Nz[if 1:  # indent hack
        def test(val):
            assert(val)
            return val
r*rr�TF)
r{rsrdr.r#rfrgrrhrj�test�assertRaises�AssertionError)r6rrMrmrrr�testDefaultOptimizationLevel�s

z:UncompressedZipImportTestCase.testDefaultOptimizationLevelcC�&tdttfi}|jd|tdd�dS)Nr*s6Some StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome StuffSome Stuff)rUrzrwrrr�testImport_WithStuff�s

�z2UncompressedZipImportTestCase.testImport_WithStuffcCs|�t�|�t�dSr-)rj�inspect�	getsourcert)r6�modulerrr�assertModuleSource�sz0UncompressedZipImportTestCase.assertModuleSourcecCs(tdttfi}|jd|t|jd�dS�Nr*r�)r{rsrtrorrwrrr�
testGetSource��z+UncompressedZipImportTestCase.testGetSourcecCsLtttdd�ttt��}tdttfttt|fi}|jt|t|jd�dS)Nrr
r*r�)	rr�rtrsr�r{r~ror)r6rrMrrr�testGetCompiledSource�s
�z3UncompressedZipImportTestCase.testGetCompiledSourcecCs.tdttfdtdfi}|jd|t|d�dS)Nr*�xyz.txtz>>> log.append(True)
r�rz)r6�callbackrMrrr�
runDoctest�s�z(UncompressedZipImportTestCase.runDoctestcCsLg}tjd}t_ztjd|dt�d�W|t_n|t_w|�|dg�dS�Nr T)�package�module_relative�globs)�doctest�master�testfile�localsrj)r6r�log�
old_masterrrr�
doDoctestFile�s�z+UncompressedZipImportTestCase.doDoctestFilecC�|�|j�dSr-)r"r-r5rrr�testDoctestFile��z-UncompressedZipImportTestCase.testDoctestFilecCs.g}tjd|dt�d���|�|dg�dSr#)r'�DocFileTestr*�runrj)r6rr+rrr�doDoctestSuite�s�z,UncompressedZipImportTestCase.doDoctestSuitecCr.r-)r"r3r5rrr�testDoctestSuite�r0z.UncompressedZipImportTestCase.testDoctestSuitec	
Cs�z	|��Wtd��ty[}zF|jj}t|d�d\}}}}|�|t���t|j	d�d\}}}}|�|t���t
��}t|d|�|�
|���t��WYd}~dSd}~ww)Nr�rzThis ought to be impossible)�do_raise�	Exception�
__traceback__�tb_nextr	rj�	raise_src�stripr
�tb_frame�io�StringIOrr��getvalue�endswithr)	r6r�e�tbrc�lno�n�line�srrr�doTraceback�s
�"��z)UncompressedZipImportTestCase.doTracebackcCs(tdttfi}|jd|t|jd�dSr)r{rsr9rorFrwrrr�
testTraceback�rz+UncompressedZipImportTestCase.testTracebackNzneed an unencodable filenamecCs�tjd}|�tj|�t|d��}ttdt�t	��}|j
|_|�|t
�Wd�n1s0wYt�|��t�}tj�|�}|j�|�dS�Nz.ziprSr*)r�TESTFN_UNENCODABLErDrWrrr{rXrYrsrZr[r\rtr@r�r�rrr�r�r�)r6�filenamerarbr�rmrrr�testUnencodable�s
�z-UncompressedZipImportTestCase.testUnencodablecCstjd}|�tj|�t|d��}ttdt�t	��}|j
|_|�|t
�Wd�n1s0wYt�|�t�t�|��|�t��t�tt�|���Wd�n1s\wY|�t��t�tt�|���Wd�dS1s|wYdSrH)r�TESTFNrDrWrrr{rXrYrsrZr[r\rtr@r�r!�fsencoder�	TypeErrorr��
memoryview)r6rJrarbrrr�
testBytesPath�s
�
�"�z+UncompressedZipImportTestCase.testBytesPathcCr)Nr*scomment�rTrzrwrrr�testComment�sz)UncompressedZipImportTestCase.testCommentcCs(tdttfi}|jd|tddd�dS)Nr*s@cruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftcruftshi)rUrTrzrwrrr�testBeginningCruftAndComment�rz:UncompressedZipImportTestCase.testBeginningCruftAndCommentcCs*tdttfi}|jd|tddd�dS)Nr*�ci��rQrzrwrrr�testLargestPossibleCommentsz8UncompressedZipImportTestCase.testLargestPossibleComment)7r:r;r<rrZr7r�rRrgrdrorxr|r�r�r��unittest�mock�patchr�r�r�r�r�r�r�r�r�r�r�r�rrrrrrrrrr"r-r/r3r4rFrG�skipIfrrIrKrPrRrSrUrrrrr=Os` 
	
MII*D�
r=c@seZdZeZdS)�CompressedZipImportTestCaseN)r:r;r<rrZrrrrrZsrZc@sTeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)�BadFileZipImportTestCasecCs|�tjtj|�dSr-)rr@r�r�)r6rJrrr�assertZipFailure
s�z)BadFileZipImportTestCase.assertZipFailurecC�|�d�dS)N�AdfjdkFJKDFJjdklfjs�r\r5rrr�
testNoFiler%z#BadFileZipImportTestCase.testNoFilecCr]r�r_r5rrr�testEmptyFilenamer%z*BadFileZipImportTestCase.testEmptyFilenamecCsB|�ttjd�|jttjtdd�|�ttjtt�t���dS)N)�kwd)rrNr@r�r{r�r!rMr5rrr�testBadArgss

�z$BadFileZipImportTestCase.testBadArgscCs|�dd�dS)N�Ai�r_r5rrr�testFilenameTooLongr�z,BadFileZipImportTestCase.testFilenameTooLongcCs"t�t�t�t�|�t�dSr-)rrWr{�create_empty_filer\r5rrr�
testEmptyFile s

z&BadFileZipImportTestCase.testEmptyFilec
Cs�t�t�t�ttjd�}z<t�|�|�tj	��
}t�
t�Wd�n1s)wYWt�td�t�t�dSWt�td�t�t�dSt�td�t�t�w)Nri�)rrWr{r!rK�O_CREAT�closerr@r�r��chmod)r6�fd�cmrrr�testFileUnreadable%s

���z+BadFileZipImportTestCase.testFileUnreadablecCs4t�t�ttd�}|�d�|��|�t�dS)N�w+�aaaaaaaaaaaaaaaaaaaaaa)rrWr{rKrLrir\)r6rQrrr�testNotZipFile3s



z'BadFileZipImportTestCase.testNotZipFilecCs�t�t�ttd�}|�t�dd��|�d�|��t�	t�}z�t
���t
�dt
�|�t|jd�Wd�n1s?wY|�t|jd�|�t|jd�|�t|jd�|�t|jd�|�t|jd�|�t|jd�|�t|jd�tj}|�|�d��|�|�d��t
���t
�dt
�|�||jd�Wd�n1s�wY|�||jd�|�t|jd�|�||jd�|�||jd�Wtj��dStj��w)Nrnz=IiPK�aaaaaaaaaaaaaaaaaar��abc)rrWr{rKrLrrrir@r�r�r�r�r�rrNr�r�r�r�r��get_coder
r�r�r��OSErrorrAr2)r6rQra�errorrrr�_testBogusZipFile;s<




�
�z*BadFileZipImportTestCase._testBogusZipFileN)r:r;r<r\r`rarcrergrmrprvrrrrr[sr[cCst�t�dSr-)rrWr{rrrr�tearDownModule^r%rw�__main__)<r.r!rr�importlib.utilrrXrV�
unittest.mockr�rr�test.supportrr�zipfilerrrrr@r>r'rr<�	tracebackr	r
rrprurtr�r�r9rr$rsr�rr{r�r�r#r�r�rgr�cache_from_source�pyc_filer~�TestCaser,r=�
requires_zlibrZr[rwr:�mainrrrr�<module>sj�=R�

Youez - 2016 - github.com/yon3zu
LinuXploit