HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/test/test_importlib/source/__pycache__/test_file_loader.cpython-310.pyc
o

�i,�@sddlmZddlmZe�d�Ze�d�Ze�d�Ze�d�ZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZdd	lmZmZdd
lmZddlmZGdd
�d
ej�Zejeeeeed�\ZZGdd�deee��ZGdd�deedd�ZGdd�d�ZGdd�de�Z Gdd�de�Z!Gdd�d�Z"Gdd�de"e �Z#eje#eeeed�\Z$Z%Gdd �d e"e!�Z&eje&eeeed�\Z'Z(Gd!d"�d"�Z)Gd#d$�d$e)e �Z*eje*eeeed�\Z+Z,Gd%d&�d&e)e!�Z-eje-eeeed�\Z.Z/e0d'k�re�1�dSdS)(�)�abc)�util�	importlibz
importlib.abczimportlib.machineryzimportlib.util�N)�make_legacy_pyc�unload)�without_source_date_epoch)�SourceDateEpochTestMetac@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zejdd��Zdd�Zejd d!��Zejd"d#��Zejd$d%��Zejd&d'��Zd(S))�
SimpleTestz�Should have no issue importing a source module [basic]. And if there is
    a syntax error, it should raise a SyntaxError [syntax error].

    cCs4d|_tj�d|jd�|_|j�|j|j�|_dS)NZspamZhamz.py)�name�os�path�join�filepath�	machinery�SourceFileLoader�loader��self�r�H/usr/local/lib/python3.10/test/test_importlib/source/test_file_loader.py�setUp!szSimpleTest.setUpcCslGdd�d|jj�}|dd�}|�td�t���t�dt�|��}Wd�dS1s/wYdS)Nc@seZdZdd�Zdd�ZdS)z/SimpleTest.test_load_module_API.<locals>.TestercS�dS)Nz	attr = 42r�r�_rrr�
get_source(�z:SimpleTest.test_load_module_API.<locals>.Tester.get_sourcecSr)NFrrrrr�
is_package)rz:SimpleTest.test_load_module_API.<locals>.Tester.is_packageN)�__name__�
__module__�__qualname__rrrrrr�Tester'sr!Zblahzblah.py�ignore)	r�
FileLoaderZ
addCleanupr�warnings�catch_warnings�simplefilter�DeprecationWarning�load_module)rr!r�modulerrr�test_load_module_API&s


"�zSimpleTest.test_load_module_APIcCs�Gdd�d|jj�}d}d}|||�}|�||�|��|�||���|�||�d��|�t��|�|d�Wd�dS1sEwYdS)Nc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
z0SimpleTest.test_get_filename_API.<locals>.TestercS�dS�Nrrrrr�get_code4rz9SimpleTest.test_get_filename_API.<locals>.Tester.get_codecSr+r,rrrrrr5rz;SimpleTest.test_get_filename_API.<locals>.Tester.get_sourcecSr+r,rrrrrr6rz;SimpleTest.test_get_filename_API.<locals>.Tester.is_packagecSr+r,rrrrr�module_repr7rz<SimpleTest.test_get_filename_API.<locals>.Tester.module_reprN)rrr r-rrr.rrrrr!3s
r!Z	some_pathZ	some_nameZXXX)rr#�assertEqual�get_filename�assertRaises�ImportError)rr!r
rrrrr�test_get_filename_API1s
"�z SimpleTest.test_get_filename_APIcCs$|j�|j|j�}|�|j|�dSr,)rrrrr/r�r�otherrrr�
test_equalityBszSimpleTest.test_equalitycCs(|j�d|j|j�}|�|j|�dS)Nr)rrrrZassertNotEqualrr4rrr�test_inequalityFszSimpleTest.test_inequalityc	Cs�t�d��R}|j�d|d�}t���t�dt�|�d�}Wd�n1s)wY|�	dt
j�d|ddd�}|��D]
\}}|�
t||�|�qAWd�dS1sZwYdS)N�_tempr"��r�__file__�__package__�r�create_modulesrrr$r%r&r'r(�assertIn�sys�modules�itemsr/�getattr�r�mappingrr)�check�attr�valuerrr�test_moduleKs
���"�zSimpleTest.test_modulec	Cs�t�d��Z}|j�d|d�}t���t�dt�|�d�}Wd�n1s)wY|�	dt
j�d|dtj
�|d�gdd�}|��D]
\}}|�t||�|�qIWd�dS1sbwYdS)N�
_pkg.__init__�_pkgr")rr;�__path__r<)rr>rrr$r%r&r'r(r?r@rArr
�dirnamerBr/rCrDrrr�test_packageWs"�
���"�zSimpleTest.test_packagec	Cs�t�dd��R}|j�d|d�}t���t�dt�|�d�}Wd�n1s*wY|�	dt
j�d|ddd�}|��D]
\}}|�
t||�|�qBWd�dS1s[wYdS)NrJz_pkg.modr"rKr:r=rDrrr�test_lacking_parentfs �
���"�zSimpleTest.test_lacking_parentcs�fdd�S)z-Fake mtime to always be higher than expected.cs�|�dS)N�r)r��fxnrr�<lambda>u�z'SimpleTest.fake_mtime.<locals>.<lambda>r)rrRrrQr�
fake_mtimes�zSimpleTest.fake_mtimec
Cs`t�d���}|j�d|d�}t���t�dt�|�d�}Wd�n1s)wYt	|�}t	|j
�}t|dddd��
}|�d�Wd�n1sPwYt���t�dt�|�d�}Wd�n1sowY|�
d|j
d�t|j
�����|�|tjd�|�t	|�|�|�t	|j
�|�Wd�dS1s�wYdS)	Nr8r"�w�utf-8��encodingztesting_var = 42
Ztesting_varz'testing_var' not in {0})rr>rrr$r%r&r'r(�id�__dict__�open�writer?�format�list�keysr/r@rA)rrErr)Z	module_idZmodule_dict_id�filerrr�test_module_reusews.
�
�
�
�"�zSimpleTest.test_module_reusec	
Cs~d}d}d}t�|���}t�|�}|D]}t|||�qt||ddd��
}|�d�Wd�n1s5wY|j�d|d�}|�	t
��
|�|�Wd�n1sXwY|D]}|�t
||�|�q_|�	t
��'t���t�dt�|�|�Wd�n1s�wYWd�n1s�wY|D]}|�t
||�|�q�Wd�dS1s�wYdS)	N)r;rLr<z<test>r8rWrXrYz+++ bad syntax +++r")rr>�types�
ModuleType�setattrr]r^rrr1�SyntaxError�exec_moduler/rCr$r%r&r'r()	rZ
attributesrHrrEZorig_modulerGrbrrrr�test_state_after_failure�s6
��
����"�z#SimpleTest.test_state_after_failurec
Cs�t�d��k}t|dddd��
}|�d�Wd�n1swY|j�d|d�}|�t��'t�	��t�
dt�|�d�Wd�n1sMwYWd�n1s\wY|�
dtj�Wd�dS1sswYdS)Nr8rWrXrY�=r")rr>r]r^rrr1rgr$r%r&r'r(ZassertNotInr@rA)rrErbrrrr�test_bad_syntax�s�
���"�zSimpleTest.test_bad_syntaxcCsNd}t|ddd��
}|�d�Wd�n1swYzlt�d��@|j�d|�}t���t�dt	�|�
d�}Wd�n1sFwY|�||j�|�|j�
|�|j�Wd�n1sgwYWt�|�tj�|j�
|��}tj�|�r�t�|�dSdSt�|�tj�|j�
|��}tj�|�r�t�|�ww)Nz_temp.pyrWrXrYz# test file for importlibr8r")r]r^rZuncacherrr$r%r&r'r(r/r;�cache_from_source�
__cached__r�unlinkr
rM�exists�shutil�rmtree)r�	file_pathrbr�mod�pycacherrr�test_file_from_empty_string_dir�s6�
����
	�
��z*SimpleTest.test_file_from_empty_string_dirc	Cs�t�d���}|d}|j�|�}t|ddd��
}|�d�Wd�n1s'wYzt�|d�Wn1tyB|�d�Yn$t	ye}z|j
tt
dd�krS�|�d	�|��WYd}~nd}~ww|j
�d|d�}t�d�}|j�d|�|_|�|�|�|jd
�|�tj�|��t�|�t���t�dt�|�d�}Wd�n1s�wY|�|j|�|�|jd
�|�tj�|��Wd�dS1s�wYdS)Nr8rWrXrYzx = 5)���rvz-cannot set modification time to large integerZ	EOVERFLOWz2cannot set modification time to large integer ({})�r") rr>rlr]r^r�utime�
OverflowErrorZskipTest�OSError�errnorCr_rrrdre�spec_from_loader�__spec__rhr/�xZ
assertTruer
rornr$r%r&r'r(rm)	rrE�sourceZcompiled�f�err)rsrrr�test_timestamp_overflow�s>���



�"�z"SimpleTest.test_timestamp_overflowc	Cs�|j�di�}t�d�}|j�d|�|_|�t��
|�|�Wd�n1s)wY|�t��0t	�
��t	�dt�|�
d�Wd�n1sNwYWd�dSWd�dS1sfwYdS)Nz	good namezbad namer")rrrdre�
ModuleSpecr}r1r2rhr$r%r&r'r()rrr)rrr�test_unloadable�s
�
��"�zSimpleTest.test_unloadablec	Cs�t�d���}|d}|j�|�}t|d��
}|�d�Wd�n1s%wYt�|d�tj|tj	j
d�|j�d|�}t
�d�}|j�d|�|_|�|�|�|jd�t|d��
}|�d�Wd�n1snwYt�|d�|�|�|�|jd�t|d	��}|��}Wd�n1s�wY|�t�|d
d�d�d
�|�|j�d�|dd��Wd�dS1s�wYdS)Nr8�wb�
state = "old"��2r���invalidation_mode�old�
state = "new"�new�rb���little��)rr>rlr]r^rrx�
py_compile�compile�PycInvalidationMode�CHECKED_HASHrrrdrer|r}rhr/�state�read�int�
from_bytes�source_hash�rrEr�pyc�fprrs�datarrr�test_checked_hash_based_pyc�s>��

�

�

�"�z&SimpleTest.test_checked_hash_based_pycc
Cslt�d���}tj�dd���|d}|j�|�}t|d��
}|�d�Wd�n1s-wYt�	|d�t
j|t
jj
d�|j�d|�}t�d�}|j�d|�|_|�|�|�|jd�t|d��
}|�d	�Wd�n1svwYt�	|d�|�|�|�|jd�Wd�n1s�wYWd�dSWd�dS1s�wYdS)
Nr8�_imp.check_hash_based_pycs�neverr�r�r�r�r�r�)rr>�unittest�mock�patchrlr]r^rrxr�r�r�r�rrrdrer|r}rhr/r�)rrErr�r�rrsrrr�&test_overridden_checked_hash_based_pycs2���

�
P�z1SimpleTest.test_overridden_checked_hash_based_pycc	Cs�t�d���}|d}|j�|�}t|d��
}|�d�Wd�n1s%wYt�|d�tj|tj	j
d�|j�d|�}t
�d�}|j�d|�|_|�|�|�|jd�t|d��
}|�d�Wd�n1snwY|�|�|�|jd�t|d��}|��}Wd�n1s�wY|�t�|d	d
�d�d�|�|j�d�|d
d
��Wd�dS1s�wYdS)Nr8r�r�r�r�r�r�r�r�r�r�rPr�)rr>rlr]r^rrxr�r�r��UNCHECKED_HASHrrrdrer|r}rhr/r�r�r�r�r�r�rrr�test_unchecked_hash_based_pyc)s<��

�

�

�"�z(SimpleTest.test_unchecked_hash_based_pycc
Cs�t�d���}tj�dd���|d}|j�|�}t|d��
}|�d�Wd�n1s-wYt�	|d�t
j|t
jj
d�|j�d|�}t�d�}|j�d|�|_|�|�|�|jd�t|d��
}|�d	�Wd�n1svwY|�|�|�|jd
�t|d��}|��}Wd�n1s�wY|�t�|dd
�d�d�|�|j�d	�|d
d��Wd�n1s�wYWd�dSWd�dS1s�wYdS)Nr8r��alwaysr�r�r�r�r�r�r�r�r�r�r�rPr�)rr>r�r�r�rlr]r^rrxr�r�r�r�rrrdrer|r}rhr/r�r�r�r�r�r�rrr�(test_overridden_unchecked_hash_based_pycGs@���

�

�

�P�z3SimpleTest.test_overridden_unchecked_hash_based_pycN)rrr �__doc__rr*r3r6r7rIrNrOrUrcrirkrur�writes_bytecode_filesr�r�r�r�r�r�rrrrr
s4

"


r
)rrrrc@�eZdZdS)r	N�rrr rrrrr	m�r	c@r�)�SourceDateEpoch_SimpleTestNr�rrrrr�rsr�T)�	metaclassZsource_date_epochc@s�eZdZdd�Zdejjd�dd�Zdd�dd	�Ze	j
dd�d
d��Zdd�dd
�Zdd�dd�Z
dd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�dd�Zdd�dd�ZdS)�BadBytecodeTestcCst�r,)�NotImplementedError)rrb�module_namerrr�import_zszBadBytecodeTest.import_F��
del_sourcer�c
Cs�ztjd=Wn	tyYnwtj|||d�|s$|j�||�}n
t�||�t	||�}|rwt
|d��}|��}||�}	Wd�n1sKwYt
|d��}|	durg|�|	�Wd�|SWd�|S1srwY|S)zwManipulate the bytecode of a module by passing it into a callable
        that returns what to use as the new bytecode.r8r�r�Nr�)
r@rA�KeyErrorr�r�rrlrrnrr]r�r^)
rrrEZmanipulatorr�r��
bytecode_pathrb�bcZnew_bcrrr�manipulate_bytecode}s2�
�
��
��z#BadBytecodeTest.manipulate_bytecode�r�cC�Rt�d��}|jd|dd�|d�}|d||�Wd�dS1s"wYdS)Nr8cSr)N�r�r�rrrrS�rz2BadBytecodeTest._test_empty_file.<locals>.<lambda>r��rr>r��r�testr�rE�bc_pathrrr�_test_empty_file���"�z BadBytecodeTest._test_empty_filecCr�)Nr8cS�|dd�S)Nr�rr�rrrrS�rTz5BadBytecodeTest._test_partial_magic.<locals>.<lambda>r�r�r�rrr�_test_partial_magic�s�"�z#BadBytecodeTest._test_partial_magiccCr�)Nr8cSr�)Nr�rr�rrrrS�rTz2BadBytecodeTest._test_magic_only.<locals>.<lambda>r�r�r�rrr�_test_magic_only�r�z BadBytecodeTest._test_magic_onlycCr�)Nr8cSr�)N�rr�rrrrS�rTz5BadBytecodeTest._test_partial_flags.<locals>.<lambda>r�r�r�rrr�_test_partial_flags�r�z#BadBytecodeTest._test_partial_flagscCs�t�d��}|jd|dd�|tjjd�}|d||�Wd�n1s$wYt�d��}|jd|dd�|tjjd�}|d||�Wd�dS1sNwYdS)Nr8cSr��N�
rr�rrrrS�rTz4BadBytecodeTest._test_partial_hash.<locals>.<lambda>r�cSr�r�rr�rrrrS�rT)rr>r�r�r�r�r�r�rrr�_test_partial_hash�s(��	�"�z"BadBytecodeTest._test_partial_hashcCr�)Nr8cSr�)N�rr�rrrrS�rTz9BadBytecodeTest._test_partial_timestamp.<locals>.<lambda>r�r�r�rrr�_test_partial_timestamp�r�z'BadBytecodeTest._test_partial_timestampcCr�)Nr8cSr�)N�rr�rrrrS�rTz4BadBytecodeTest._test_partial_size.<locals>.<lambda>r�r�r�rrr�_test_partial_size�r�z"BadBytecodeTest._test_partial_sizec	C�t�d��?}|jd|dd�|d�}|s|dn|}|�t��|�|d�Wd�n1s/wYWd�dSWd�dS1sGwYdS)Nr8cSr�)Nr�rr�rrrrS�rTz2BadBytecodeTest._test_no_marshal.<locals>.<lambda>r��rr>r�r1�EOFErrorr�)rr�rEr�rrrrr�_test_no_marshal�����"�z BadBytecodeTest._test_no_marshalc	Cs�t�d��G}|jd|dd�|d�}|s|dn|}|�t��}|�|d�Wd�n1s/wY|�|jjd�|�|jj	|�Wd�dS1sOwYdS)Nr8cSs|dd�t�d�S)Nr�sabcd)�marshal�dumpsr�rrrrS�sz8BadBytecodeTest._test_non_code_marshal.<locals>.<lambda>r�)
rr>r�r1r2r�r/�	exceptionrr
)rr�rEr�rr�cmrrr�_test_non_code_marshal�s��"�z&BadBytecodeTest._test_non_code_marshalc	Cr�)Nr8cSs|dd�dS)Nr�s<test>rr�rrrrS��z3BadBytecodeTest._test_bad_marshal.<locals>.<lambda>r�r�)rr�rEr�rrrrr�_test_bad_marshal�r�z!BadBytecodeTest._test_bad_marshalcCsNt�d��}|�d|dd��}|d||�Wd�dS1s wYdS)Nr8cSsd|dd�S)N�r�rr�rrrrS�r�z1BadBytecodeTest._test_bad_magic.<locals>.<lambda>r�r�rrr�_test_bad_magic�s�"�zBadBytecodeTest._test_bad_magicN)rrr r�r�r��	TIMESTAMPr�r�rr�r�r�r�r�r�r�r�r�r�r�rrrrr�xs"�			r�c@�eZdZdd�ZdS)�BadBytecodeTestPEP451cCs4|�||�}t�|�}|j�||�|_|�|�dSr,)rrdrerr|r}rh�rrbr�rr)rrrr��s
zBadBytecodeTestPEP451.import_N�rrr r�rrrrr���r�c@r�)�BadBytecodeTestPEP302cCs\|�||�}t���t�dt�|�|�}Wd�n1s wY|�|tj�dS)Nr")	rr$r%r&r'r(r?r@rAr�rrrr�s
�zBadBytecodeTestPEP302.import_Nr�rrrrr�r�r�c@s�eZdZedd��Zejdd��Zdd�Zejdd��Z	ejd	d
��Z
ejdd��Zejd
d��Zejdd��Z
ejdd��Zejdd��Zejdd��Zejdd��Zejedd���Zejdd��ZdS)�SourceLoaderBadBytecodeTestcC�|jj|_dSr,)rrr��clsrrr�
setUpClass�z&SourceLoaderBadBytecodeTest.setUpClassc��fdd�}��|�dS)Nc�T��|||�t|d��}��t|���d�Wd�dS1s#wYdS�Nr�r��r�r]Z
assertGreater�lenr��rrEr�rbrrrr��"�z9SourceLoaderBadBytecodeTest.test_empty_file.<locals>.test�r��rr�rrr�test_empty_file�z+SourceLoaderBadBytecodeTest.test_empty_filecr�)Ncr�r�r�r�rrrr� r�z<SourceLoaderBadBytecodeTest.test_partial_magic.<locals>.test�r�r�rrr�test_partial_magicsz.SourceLoaderBadBytecodeTest.test_partial_magiccr�)Ncr�r�r�r�rrrr�+r�z9SourceLoaderBadBytecodeTest.test_magic_only.<locals>.test�r�r�rrr�test_magic_only'r�z+SourceLoaderBadBytecodeTest.test_magic_onlycr�)NcsV��|||�t|d��}��|�d��jj�Wd�dS1s$wYdS)Nr�r�)r�r]r/r�r�MAGIC_NUMBER)rrEr��
bytecode_filerrrr�6s�"�z8SourceLoaderBadBytecodeTest.test_bad_magic.<locals>.test�r�r�rrr�test_bad_magic2sz*SourceLoaderBadBytecodeTest.test_bad_magiccr�)Ncr�r�r��rrEr�rbrrrr�Br�z@SourceLoaderBadBytecodeTest.test_partial_timestamp.<locals>.test�r�r�rrr�test_partial_timestamp>r�z2SourceLoaderBadBytecodeTest.test_partial_timestampcr�)Ncr�r�r�rrrrr�Lr�z<SourceLoaderBadBytecodeTest.test_partial_flags.<locals>.test�r�r�rrr�test_partial_flagsI�z.SourceLoaderBadBytecodeTest.test_partial_flagscr�)Ncr�r�r�rrrrr�Vr�z;SourceLoaderBadBytecodeTest.test_partial_hash.<locals>.test�r�r�rrr�test_partial_hashSrz-SourceLoaderBadBytecodeTest.test_partial_hashcr�)Ncr�r�r�rrrrr�ar�z;SourceLoaderBadBytecodeTest.test_partial_size.<locals>.test�r�r�rrr�test_partial_size]r�z-SourceLoaderBadBytecodeTest.test_partial_sizecC�|��dSr,�r�rrrr�test_no_marshalh�z+SourceLoaderBadBytecodeTest.test_no_marshalcCrr,�r�rrrr�test_non_code_marshalmrVz1SourceLoaderBadBytecodeTest.test_non_code_marshalcCrr,)r�rrrr�test_bad_marshalsrz,SourceLoaderBadBytecodeTest.test_bad_marshalc	Csd}t�d��x}t�|d�|j�|d�}t|d��}|�d�|�|�Wd�n1s1wY|�|dd�t	j
�|d�}|j�
|�}t|d��}|�d�|�|�d�|�Wd�n1sjwYWd�dSWd�dS1s�wYdS)Nr�r8�r+br�r�r�)rr>r�r�rlr]�seekr^r�rr
�getmtimer�_pack_uint32r/r�)rZzerosrEr�r��source_mtimeZsource_timestamprrr�test_old_timestampys$
�
��	"�z.SourceLoaderBadBytecodeTest.test_old_timestampcCs�t�d��^}t�|d�|j�|d�}t|d��}|�d�|�d�Wd�n1s/wYt�	|t
jt
jBt
j
B�z|�|dd�Wt�	|t
j�nt�	|t
j�wWd�dS1sfwYdS)Nr8rrr�)rr>r�r�rlr]rr^r�chmod�stat�S_IRUSR�S_IRGRP�S_IROTHr��S_IWUSR)rrEr�r�rrr�test_read_only_bytecode�s
��""�z3SourceLoaderBadBytecodeTest.test_read_only_bytecodeN)rrr �classmethodr�rr�r�r�r�rrrrr
r
rrrrrrrrrr�s:








	
	




r�c@r�)�!SourceLoaderBadBytecodeTestPEP451Nr�rrrrr �r�r c@r�)�!SourceLoaderBadBytecodeTestPEP302Nr�rrrrr!�r�r!c@sheZdZedd��Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�ZdS)�SourcelessLoaderBadBytecodeTestcCr�r,)r�SourcelessFileLoaderrr�rrrr��r�z*SourcelessLoaderBadBytecodeTest.setUpClassc��fdd�}�j|dd�dS)Nc�Z��t��}��||�Wd�n1swY��|jj|���|jj|�dSr,�r1r2r�r/r�rr
�rrEr�r�rrrr���
�z=SourcelessLoaderBadBytecodeTest.test_empty_file.<locals>.testTr�r�r�rrrr���z/SourcelessLoaderBadBytecodeTest.test_empty_filecr$)Ncr%r,r&r'rrrr��r(z@SourcelessLoaderBadBytecodeTest.test_partial_magic.<locals>.testTr�r�r�rrrr��sz2SourcelessLoaderBadBytecodeTest.test_partial_magiccr$)Nc�<��t����||�Wd�dS1swYdSr,�r1r�r��rrEr�rrrr���"�z=SourcelessLoaderBadBytecodeTest.test_magic_only.<locals>.testTr�r�r�rrrr���z/SourcelessLoaderBadBytecodeTest.test_magic_onlycr$)Ncr%r,r&r'rrrr��r(z<SourcelessLoaderBadBytecodeTest.test_bad_magic.<locals>.testTr�r�r�rrrr�r)z.SourcelessLoaderBadBytecodeTest.test_bad_magiccr$)Ncr*r,r+r,rrrr��r-zDSourcelessLoaderBadBytecodeTest.test_partial_timestamp.<locals>.testTr�rr�rrrr�r.z6SourcelessLoaderBadBytecodeTest.test_partial_timestampcr$)Ncr*r,r+r,rrrr��r-z@SourcelessLoaderBadBytecodeTest.test_partial_flags.<locals>.testTr�rr�rrrr�r.z2SourcelessLoaderBadBytecodeTest.test_partial_flagscr$)Ncr*r,r+r,rrrr��r-z?SourcelessLoaderBadBytecodeTest.test_partial_hash.<locals>.testTr�rr�rrrr�r.z1SourcelessLoaderBadBytecodeTest.test_partial_hashcr$)Ncr*r,r+r,rrrr��r-z?SourcelessLoaderBadBytecodeTest.test_partial_size.<locals>.testTr�r	r�rrrr
�r.z1SourcelessLoaderBadBytecodeTest.test_partial_sizecC�|jdd�dS�NTr�rrrrrr
��z/SourcelessLoaderBadBytecodeTest.test_no_marshalcCr/r0rrrrrrr1z5SourcelessLoaderBadBytecodeTest.test_non_code_marshalN)rrr rr�r�r�r�rrrrr
r
rrrrrr"�s
		r"c@r�)�%SourcelessLoaderBadBytecodeTestPEP451Nr�rrrrr2r�r2c@r�)�%SourcelessLoaderBadBytecodeTestPEP302Nr�rrrrr3r�r3�__main__)2r9rrZimport_importlibrZ
importlib_abcrZimportlib_utilr{r�rr�rprr@rdr�r$Ztest.support.import_helperrrZtest.test_py_compilerr	ZLoaderTestsr
Z	test_bothZFrozen_SimpleTestZSource_SimpleTest�typer�r�r�r�r�r ZFrozen_SourceBadBytecodePEP451ZSource_SourceBadBytecodePEP451r!ZFrozen_SourceBadBytecodePEP302ZSource_SourceBadBytecodePEP302r"r2Z"Frozen_SourcelessBadBytecodePEP451Z"Source_SourcelessBadBytecodePEP451r3Z"Frozen_SourcelessBadBytecodePEP302Z"Source_SourcelessBadBytecodePEP302r�mainrrrr�<module>s�




Q����	

���
���J������
�