HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/test_importlib/__pycache__/test_spec.cpython-38.pyc
U

/D�g�y�@s.ddlmZe�d�Ze�d�Ze�d�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*e��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�</opt/cppython/lib/python3.8/test/test_importlib/test_spec.py�__init__szTestLoader.__init__cCsdS)Nz<TestLoader object>r�r
rrr
�__repr__szTestLoader.__repr__cCs2|dkr|jdk	r|jS|dkr&|jSt|��dS)N�get_filenamer)r�
_get_filename�_is_package�AttributeError�r
�namerrr
�__getattr__s
zTestLoader.__getattr__cCs|jSr)rrrrr
r szTestLoader._get_filenamecCs|jSr)r	rrrr
r#szTestLoader._is_packagecCsdSrr�r
�specrrr
�
create_module&szTestLoader.create_module)NN)	�__name__�
__module__�__qualname__rrrrrrrrrr
rs
rc@seZdZdZdd�ZdS)�	NewLoaderrcCs|j|_dSr)�EGGS�eggs�r
�modulerrr
�exec_module.szNewLoader.exec_moduleN)rrrrr#rrrr
r*src	@sFeZdZdZe���(e�de�edZ	e	j
dd��ZW5QRXdS)�LegacyLoader����ignoreZFrozencCs|j|_|Sr)�HAM�hamr!rrr
�load_module;szLegacyLoader.load_moduleN)rrrr'�warnings�catch_warnings�simplefilter�DeprecationWarningrZfrozen_util�module_for_loaderr)rrrr
r$2s
r$c@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|_|j�|j�|_t�|_|j�|j|j�|_	|jj|j|j|jd�|_
d|j
_dS�N�spam�spam.py��originT�rrr�cache_from_source�cachedr�loader�	machinery�
ModuleSpecr�loc_spec�
_set_fileattrrrrr
�setUpCs�zModuleSpecTests.setUpcCsz|j�|j|j�}|�|j|j�|�|j|j�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dSr�r9r:rr8�assertEqual�assertIsr4�loader_state�submodule_search_locationsr7�assertFalse�has_locationrrrr
�test_defaultMszModuleSpecTests.test_defaultcCsv|j�|jd�}|�|j|j�|�|jd�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dSr)r9r:rr?r@r8r4rArBr7rCrDrrrr
�test_default_no_loaderXsz&ModuleSpecTests.test_default_no_loadercCs~|jj|j|jdd�}|�|j|j�|�|j|j�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dS�NF�rr>rrrr
�test_default_is_package_falsecs�z-ModuleSpecTests.test_default_is_package_falsecCs~|jj|j|jdd�}|�|j|j�|�|j|j�|�|jd�|�|jd�|�|jg�|�|j	d�|�
|j�dS�NTrHr>rrrr
�test_default_is_package_trueos�z,ModuleSpecTests.test_default_is_package_truecCs8|jj|j|jdd�}|�|j�d|_|�|j�dS)NZ	somewherer3T)r9r:rr8rCrD�
assertTruerrrr
�test_has_location_setter{s�z(ModuleSpecTests.test_has_location_settercCs2ttj�|j|jddddd�}|�|j|k�dS)NF�rr8r4rBrDr7)�type�sys�implementationrr8rLr�r
�otherrrr
�
test_equality�s�zModuleSpecTests.test_equalitycCs4ttj�|j|j|jdd|jd�}|�|j|�dS)NTrN)	rOrPrQrr8rr7r?r;rRrrr
�test_equality_location�s�z&ModuleSpecTests.test_equality_locationcCs.ttj�d|jddddd�}|�|j|�dS)Nr(FrN)rOrPrQr8�assertNotEqualrrRrrr
�test_inequality�s
�zModuleSpecTests.test_inequalitycCs(ttj�|j|jd�}|�|j|�dS)N)rr8)rOrPrQrr8rVrrRrrr
�test_inequality_incomplete�s�z*ModuleSpecTests.test_inequality_incompletecCs"|j�d|j�}|�|jd�dS)N�	spam.eggsr1�r9r:r8r?�parentrrrr
�test_package�szModuleSpecTests.test_packagecCs&|jjd|jdd�}|�|jd�dS)NrYTrHrZrrrr
�test_package_is_package�s�z'ModuleSpecTests.test_package_is_packagecCs4|jj}d|j_|jj}|�|d�|�|d�dS)NZthere)rr7r@r?)r
�beforeZafterrrr
�test_cached_set�s
zModuleSpecTests.test_cached_setcCs$|j�|j|j�}|�|jd�dSr)r9r:rr8r@r7rrrr
�test_cached_no_origin�sz%ModuleSpecTests.test_cached_no_origincCs*|jj|j|j|jd�}|�|jd�dS)Nr3)r9r:rr8rr@r7rrrr
�$test_cached_with_origin_not_location�s�z4ModuleSpecTests.test_cached_with_origin_not_locationcCs"|j�|j�}|�|jj|�dSr)rr6rr?r;r7)r
Zexpectedrrr
�test_cached_source�sz"ModuleSpecTests.test_cached_sourcecCsd|j_|�|jjd�dS)Nzspam.spamspamspam)r;r4r@r7rrrr
�!test_cached_source_unknown_suffix�sz1ModuleSpecTests.test_cached_source_unknown_suffixcCs8tjj}dtj_z|jj}W5|tj_X|�|d�dSr)rPrQ�	cache_tagr;r7r@)r
Zoriginalr7rrr
�$test_cached_source_missing_cache_tag�s
z4ModuleSpecTests.test_cached_source_missing_cache_tagcCsd|j_|�|jjd�dS)Nzspam.pyc)r;r4r?r7rrrr
�test_cached_sourceless�sz&ModuleSpecTests.test_cached_sourcelessN)rrrr=rErFrIrKrMrTrUrWrXr\r]r_r`rarbrcrerfrrrr
r/As&

r/)rr9c@s�eZdZedd��Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�ZdS) �ModuleSpecMethodsTestscCs|jjSr��init�
_bootstraprrrr
�	bootstrap�sz ModuleSpecMethodsTests.bootstrapcCs^d|_d|_|j�|j�|_t�|_|j�|j|j�|_	|jj|j|j|jd�|_
d|j
_dSr0r5rrrr
r=�s�zModuleSpecMethodsTests.setUpcCsVt�|j_|j�|j�}|tj|j<|�t	|d��|j
�|j|�|�|j
d�dS)Nr r)rrr8r�module_from_specrP�modulesrrC�hasattrrk�_execr?r r!rrr
�	test_exec�s
z ModuleSpecMethodsTests.test_execc	Cs\t�|j_t|jj��"|j�|j�}tj|jj}W5QRX|�	|j
d�|�||�dS�Nr)rrr8rrrk�_loadrPrmr?r r@)r
�loaded�	installedrrr
�	test_loads
z ModuleSpecMethodsTests.test_loadc	stt��G�fdd�dt�}|�|j_t|jj��"|j�|j�}tj	|jj}W5QRX|�
|��|�
|��dS)NcseZdZ�fdd�ZdS)zBModuleSpecMethodsTests.test_load_replaced.<locals>.ReplacingLoadercs�tj|j<dSr)rPrmrr!�Zreplacementrr
r#szNModuleSpecMethodsTests.test_load_replaced.<locals>.ReplacingLoader.exec_moduleN�rrrr#rrvrr
�ReplacingLoadersrx)�objectrrr8rrrkrrrPrmr@)r
rxrsrtrrvr
�test_load_replaceds
z)ModuleSpecMethodsTests.test_load_replacedc
CslGdd�dt�}|�|j_t|jj��<|�t��|j�|j�}W5QRX|�	|jjt
j�W5QRXdS)Nc@seZdZdd�ZdS)z=ModuleSpecMethodsTests.test_load_failed.<locals>.FailedLoadercSst�dSr)�RuntimeErrorr!rrr
r#szIModuleSpecMethodsTests.test_load_failed.<locals>.FailedLoader.exec_moduleNrwrrrr
�FailedLoadersr|�rrr8rrZassertRaisesr{rkrrZassertNotInrPrm�r
r|rsrrr
�test_load_faileds
z'ModuleSpecMethodsTests.test_load_failedc
CslGdd�dt�}|�|j_t|jj��<|�t��|j�|j�}W5QRX|�	|jjt
j�W5QRXdS)Nc@seZdZdd�ZdS)zEModuleSpecMethodsTests.test_load_failed_removed.<locals>.FailedLoadercSstj|j=t�dSr)rPrmrr{r!rrr
r#(s
zQModuleSpecMethodsTests.test_load_failed_removed.<locals>.FailedLoader.exec_moduleNrwrrrr
r|'sr|r}r~rrr
�test_load_failed_removed&s
z/ModuleSpecMethodsTests.test_load_failed_removedc	CsBt�|j_t|jj��|j�|j�}W5QRX|�|jd�dS�Nr%)	r$rr8rrrkrrr?r(�r
rsrrr
�test_load_legacy1s
z'ModuleSpecMethodsTests.test_load_legacyc	Csht�|j_t|jj��|j�|j�}W5QRX|�|j|jj�|�	|j
|jj�|�|j|j�dSr)
r$rr8rrrkrrr@�
__loader__r?�__package__r[�__spec__r�rrr
�test_load_legacy_attributes8s
z2ModuleSpecMethodsTests.test_load_legacy_attributesc	sdt��G�fdd�dt�}|�|j_t|jj��*|j�|j�}|�t	j
|jj��W5QRXdS)NcseZdZ�fdd�ZdS)zUModuleSpecMethodsTests.test_load_legacy_attributes_immutable.<locals>.ImmutableLoadercs�tj|<�Sr)rPrmr�r"rr
r)Ds
zaModuleSpecMethodsTests.test_load_legacy_attributes_immutable.<locals>.ImmutableLoader.load_moduleN)rrrr)rr�rr
�ImmutableLoaderCsr�)ryrrr8rrrkrrr@rPrm)r
r�rsrr�r
�%test_load_legacy_attributes_immutableAs
z<ModuleSpecMethodsTests.test_load_legacy_attributes_immutablec	Csxt�|j_t|jj��2|j�|j�}|j�|j|�}tj	|jj}W5QRX|�
|jd�|�||�|�||�dSrq)
rrr8rrrkrrrorPrmr?r r@�r
rs�reloadedrtrrr
�test_reloadOs
z"ModuleSpecMethodsTests.test_reloadc	Csdt�|j_t|jj��*|j�|j�}d|_|j�|j|�}W5QRX|�	|jd�|�
||�dS)N�r)rrr8rrrkrrr ror?r@�r
rsr�rrr
�test_reload_modifiedZs
z+ModuleSpecMethodsTests.test_reload_modifiedc	Csbt�|j_t|jj��*|j�|j�}d|_|j�|j|�}W5QRX|�	|j�|�
||�dS�NF)rrr8rrrkrrZ	availablerorCr@r�rrr
�test_reload_extra_attributesds
z3ModuleSpecMethodsTests.test_reload_extra_attributesc	Cs�t�|j_t|jj��6|j�|j�}d|_|`|`	|`
|j�|j|�W5QRX|�|j|jj�|�
|j|jj�|�|j	|jj�|�
|j
|j�|�t|d��|�t|d��|�t|d��dS)Nr(�__path__�__file__�
__cached__)rrr8rrrkrrrr�r�r�ror?r@r[rCrnr�rrr
�test_reload_init_module_attrsns
z4ModuleSpecMethodsTests.test_reload_init_module_attrsc	Csxt�|j_t|jj��2|j�|j�}|j�|j|�}tj	|jj}W5QRX|�
|jd�|�||�|�||�dSr�)
r$rr8rrrkrrrorPrmr?r(r@r�rrr
�test_reload_legacy�s
z)ModuleSpecMethodsTests.test_reload_legacyN)rrr�propertyrkr=rprurzrr�r�r�r�r�r�r�r�r�rrrr
rg�s 
	

	

rg)rirr9c@speZdZedd��Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�ModuleReprTestscCs|jjSrrhrrrr
rk�szModuleReprTests.bootstrapcCs$tt�d�|_|j�dt��|_dS)Nr1)rO�osr"r9r:rrrrrr
r=�szModuleReprTests.setUpcCs6Gdd�d�}|�|j_|j�|j�}|�|d�dS)Nc@seZdZdd�ZdS)zBModuleReprTests.test_module___loader___module_repr.<locals>.LoadercSsd�|j�S)Nz<delicious {}>)�formatrr!rrr
�module_repr�szNModuleReprTests.test_module___loader___module_repr.<locals>.Loader.module_reprN�rrrr�rrrr
�Loader�sr�z<delicious spam>)r"r�rk�_module_reprr?�r
r��modreprrrr
�"test_module___loader___module_repr�s
z2ModuleReprTests.test_module___loader___module_reprcCs>Gdd�dt�}|�|j_|j�|j�}|�|d�d��dS)Nc@seZdZdd�ZdS)zFModuleReprTests.test_module___loader___module_repr_bad.<locals>.LoadercSst�dSr)�	Exceptionr!rrr
r��szRModuleReprTests.test_module___loader___module_repr_bad.<locals>.Loader.module_reprNr�rrrr
r��sr��#<module {!r} (<TestLoader object>)>r1�rr"r�rkr�r?r�r�rrr
�&test_module___loader___module_repr_bad�s
�z6ModuleReprTests.test_module___loader___module_repr_badcCs<d}||j_|j|j_|j�|j�}|�|d�d|��dS)Nzin a hole, in the groundz<module {!r} ({})>r1)rr4r"r�rkr�r?r�)r
r4r�rrr
�test_module___spec__�s

z$ModuleReprTests.test_module___spec__cCsDd}||j_d|j_|j|j_|j�|j�}|�|d�d|��dS)Nzin_a_galaxy_far_far_away.pyT�<module {!r} from {!r}>r1)	rr4r<r"r�rkr�r?r�)r
�locationr�rrr
�test_module___spec___location�s

�z-ModuleReprTests.test_module___spec___locationcCs8t�|j_|j|j_|j�|j�}|�|d�d��dS�Nr�r1)	rrr8r"r�rkr�r?r��r
r�rrr
�test_module___spec___no_origin�s

�z.ModuleReprTests.test_module___spec___no_origincCs6d|j_|j|j_|j�|j�}|�|d�d��dS�N�
<module {!r}>r1)rr8r"r�rkr�r?r�r�rrr
�(test_module___spec___no_origin_no_loader�s
z8ModuleReprTests.test_module___spec___no_origin_no_loadercCs*|j`|j�|j�}|�|d�d��dS)Nr��?)r"rrkr�r?r�r�rrr
�test_module_no_name�sz#ModuleReprTests.test_module_no_namecCs2d}||j_|j�|j�}|�|d�d|��dS)Nze/i/e/i/o/spam.pyr�r1)r"r�rkr�r?r�)r
�filenamer�rrr
�test_module_with_file�s
�z%ModuleReprTests.test_module_with_filecCs.t�|j_|j�|j�}|�|d�d��dSr�r�r�rrr
�test_module_no_file�s

�z#ModuleReprTests.test_module_no_filecCs$|j�|j�}|�|d�d��dSr�)rkr�r"r?r�r�rrr
�test_module_no_file_no_loader�sz-ModuleReprTests.test_module_no_file_no_loaderN)rrrr�rkr=r�r�r�r�r�r�r�r�r�r�rrrr
r��s
	

r�c@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�Zd5d6�Zd7S)8�FactoryTestscCsJd|_tj�d�|_|j�|j�|_t�|_t|j�|_	t|jd�|_
dS)Nr1r2T)rr�r�abspathrr6r7rr8�
fileloader�	pkgloaderrrrr
r=�szFactoryTests.setUpcCsz|j�|j|j�}|�|j|j�|�|j|j�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dSr�r�spec_from_loaderrr8r?r@r4rArBr7rCrDrrrr
�test_spec_from_loader_default�sz*FactoryTests.test_spec_from_loader_defaultcCs�Gdd�d�}|�}|j�|j|�}|�|j|j�|�|j|�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dS)Nc@seZdZdd�ZdS)zNFactoryTests.test_spec_from_loader_default_with_bad_is_package.<locals>.LoadercSst�dSr��ImportErrorrrrr
r
szYFactoryTests.test_spec_from_loader_default_with_bad_is_package.<locals>.Loader.is_packageN�rrrrrrrr
r�	sr�)rr�rr?r8r@r4rArBr7rCrD�r
r�r8rrrr
�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|�|�|jd�|�|jd�|�|j	d�|�
|j�dS)Nzsomewhere over the rainbowr3r��r
r4rrrr
�test_spec_from_loader_origins�z)FactoryTests.test_spec_from_loader_origincCs~|jj|j|jdd�}|�|j|j�|�|j|j�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dSrGr�rrrr
�&test_spec_from_loader_is_package_false$s�z3FactoryTests.test_spec_from_loader_is_package_falsecCs~|jj|j|jdd�}|�|j|j�|�|j|j�|�|jd�|�|jd�|�|jg�|�|j	d�|�
|j�dSrJr�rrrr
�%test_spec_from_loader_is_package_true0s�z2FactoryTests.test_spec_from_loader_is_package_truecCs�d}|jj|j|j|dd�}|�|j|j�|�|j|j�|�|j|�|�|jd�|�|jg�|�|j	d�|�
|j�dS)Nzwhere the streets have no nameT)r4rr�r�rrr
�+test_spec_from_loader_origin_and_is_package<s�z8FactoryTests.test_spec_from_loader_origin_and_is_packagecCs�tdd�}|j�|j|�}|�|j|j�|�|j|�|�|jd�|�|jd�|�|j	d�|�|j
d�|�|j�dSrG�
rrr�rr?r8r@r4rArBr7rCrD�r
r8rrrr
�2test_spec_from_loader_is_package_with_loader_falseIs
z?FactoryTests.test_spec_from_loader_is_package_with_loader_falsecCs�tdd�}|j�|j|�}|�|j|j�|�|j|�|�|jd�|�|jd�|�|j	g�|�|j
d�|�|j�dSrJr�r�rrr
�1test_spec_from_loader_is_package_with_loader_trueUs
z>FactoryTests.test_spec_from_loader_is_package_with_loader_truecCs~|j�|j|j�}|�|j|j�|�|j|j�|�|j|j�|�|j	d�|�|j
d�|�|j|j�|�|j
�dSr�rr�rr�r?r8r4rr@rArBr7rLrDrrrr
�.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	d�|�|j
d�|�|j|j�|�|j
�dSrGr�rrrr
�6test_spec_from_loader_is_package_false_with_fileloaderls�zCFactoryTests.test_spec_from_loader_is_package_false_with_fileloadercCs�|jj|j|jdd�}|�|j|j�|�|j|j�|�|j|j�|�|j	d�|�|j
t��g�|�|j
|j
�|�|j�dSrJ)rr�rr�r?r8r4rr@rArBr��getcwdr7rLrDrrrr
�5test_spec_from_loader_is_package_true_with_fileloaderxs�zBFactoryTests.test_spec_from_loader_is_package_true_with_fileloadercCs�|j�|j|j�}|�|j|j�|�|j|jjjj	�|�|jj|j�|�|jj|j�|�|j
|j�|�|jd�|�|j
d�|�|j|j�|�|j�dSr)r�spec_from_file_locationrrr?ZassertIsInstancer8�abcr9�SourceFileLoaderr4r@rArBr7rLrDrrrr
�$test_spec_from_file_location_default�s
�z1FactoryTests.test_spec_from_file_location_defaultcCs,|j�|jt�|j��}|�|j|j�dSr)rr�r�pathlibZPurePathrr?r4rrrr
�*test_spec_from_file_location_path_like_arg�s

�z7FactoryTests.test_spec_from_file_location_path_like_argcCs|j�|j�}|�|d�dSr�rr�rr@rrrr
�5test_spec_from_file_location_default_without_location�szBFactoryTests.test_spec_from_file_location_default_without_locationcCs |j�|jd�}|�|d�dS)NrYr�rrrr
�/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	d�|�|j
d�|�|j|j�|�|j
�dS�N�r8)rr�rr�r?r8r4rr@rArBr7rLrDrrrr
�/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�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dS)Nr��	<unknown>)rr�rr8r?r4r@rArBr7rLrDrrrr
�?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|�|�|jd�|�|jd�|�|jd�|�|j	d�|�
|j�dS)Nc@seZdZdd�ZdS)z]FactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename.<locals>.LoadercSst�dSrr�rrrr
r�szjFactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename.<locals>.Loader.get_filenameN)rrrrrrrr
r��sr�r�r�)rr�rr?r8r4r@rArBr7rLrDr�rrr
�@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	d�|�|j
d�|�|j|j�|�|j
�dS�N�r8rB�rr�rrr�r?r8r4r@rArBr7rLrDrrrr
�&test_spec_from_file_location_smsl_none�s�z3FactoryTests.test_spec_from_file_location_smsl_nonecCs�|jj|j|j|jgd�}|�|j|j�|�|j|j�|�|j|j�|�|j	d�|�|j
t��g�|�|j
|j
�|�|j�dSr�)rr�rrr�r?r8r4r@rArBr�r�r7rLrDrrrr
�'test_spec_from_file_location_smsl_empty�s�z4FactoryTests.test_spec_from_file_location_smsl_emptycCs�|jj|j|j|jdgd�}|�|j|j�|�|j|j�|�|j|j�|�|j	d�|�|j
dg�|�|j|j�|�|j
�dS)Nr r�r�rrrr
�+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	d�|�|j
t��g�|�|j
|j
�|�|j�dSr�)rr�rrr�r?r8r4r@rArBr�r�r7rLrDrrrr
�)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�|�|jd�|�|j	d�|�|j
|j
�|�|j�dS)Nc@seZdZdd�ZdS)zRFactoryTests.test_spec_from_file_location_smsl_default_not_package.<locals>.LoadercSsdSr�rrrrr
rsz]FactoryTests.test_spec_from_file_location_smsl_default_not_package.<locals>.Loader.is_packageNr�rrrr
r�sr�r��
rr�rrr?r8r4r@rArBr7rLrDr�rrr
�5test_spec_from_file_location_smsl_default_not_packages�zBFactoryTests.test_spec_from_file_location_smsl_default_not_packagecCs�|jj|j|j|jd�}|�|j|j�|�|j|j�|�|j|j�|�|j	d�|�|j
d�|�|j|j�|�|j
�dSr�r�rrrr
�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�|�|jd�|�|j	d�|�|j
|j
�|�|j�dS)Nc@seZdZdd�ZdS)zUFactoryTests.test_spec_from_file_location_smsl_default_bad_is_package.<locals>.LoadercSst�dSrr�rrrr
rsz`FactoryTests.test_spec_from_file_location_smsl_default_bad_is_package.<locals>.Loader.is_packageNr�rrrr
r�sr�r�r�r�rrr
�8test_spec_from_file_location_smsl_default_bad_is_packages�zEFactoryTests.test_spec_from_file_location_smsl_default_bad_is_packagecCs�|jj|jtj�|j�|jd�}|�|j|j�|�|j|j�|�|j	tj�|j��|�
|jd�|�
|jd�|�|j
tj�|j
��|�|j�dSr�)rr�rr�r�basenamer�r?r8r4r@rArBr7�relpathrLrDrrrr
�*test_spec_from_file_location_relative_path,s
�z7FactoryTests.test_spec_from_file_location_relative_pathN)rrrr=r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr
r��s6





r��__main__) �rZ	test_utilZimport_importlibrir9Zos.pathr�r�Ztest.supportrZunittestrPr*rrr$r/Z	test_bothZFrozen_ModuleSpecTestsZSource_ModuleSpecTestsrgZFrozen_ModuleSpecMethodsTestsZSource_ModuleSpecMethodsTestsr�ZFrozen_ModuleReprTestsZSource_ModuleReprTestsr�ZFrozen_FactoryTestsZSource_FactoryTestsr�mainrrrr
�<module>sL


&�&
��[
��K�