Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_importlib/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_importlib/__pycache__/test_spec.cpython-312.opt-2.pyc

�

)Μg!i����ddlmZejd�Zejd�Zejd�ZddlZddlZddl	m
Z
ddlZddlZddl
Z
Gd�d�ZGd	�d
e�ZGd�d�Zej"eee�
�\ZZGd�d�Zej"eeee��\ZZGd�d�Zej"eee�
�\ZZedk(rej6�yy)�)�util�	importlibzimportlib.machineryzimportlib.utilN)�CleanImportc�2�eZdZdd�Zd�Zd�Zd�Zd�Zd�Zy)	�
TestLoaderNc� �||_||_y�N)�path�package)�selfr
�
is_packages   �:/usr/local/lib/python3.12/test/test_importlib/test_spec.py�__init__zTestLoader.__init__s����	�!���c��y)Nz<TestLoader object>��rs r�__repr__zTestLoader.__repr__s��$rc�t�|dk(r|j�|jS|dk(r|jSt|��)N�get_filenamer
)r
�
_get_filename�_is_package�AttributeError�r�names  r�__getattr__zTestLoader.__getattr__s>���>�!�d�i�i�&;��%�%�%��<���#�#�#��T�"�"rc��|jSr	)r
rs  rrzTestLoader._get_filename s���y�y�rc��|jSr	)rrs  rrzTestLoader._is_package#s���|�|�rc��yr	r�r�specs  r�
create_modulezTestLoader.create_module&s��r)NN)	�__name__�
__module__�__qualname__rrrrrr"rrrrrs ��"�%�#���rrc��eZdZdZd�Zy)�	NewLoader�c�&�|j|_yr	)�EGGS�eggs�r�modules  r�exec_modulezNewLoader.exec_module.s
���i�i��rN)r#r$r%r*r.rrrr'r'*s���D� rr'c�~�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�ModuleSpecTestsc��d|_d|_|jj|j�|_t�|_|jj|j|j�|_	|jj|j|j|j��|_
d|j_y�N�spam�spam.py��originT�rr
r�cache_from_source�cachedr�loader�	machinery�
ModuleSpecr!�loc_spec�
_set_fileattrrs r�setUpzModuleSpecTests.setUp4�����	���	��i�i�1�1�$�)�)�<��� �l����N�N�-�-�d�i�i����E��	����1�1�$�)�)�T�[�[�9=���2�D��
�&*��
�
�#rc��|jj|j|j�}|j	|j|j�|j	|j|j�|j|jd�|j|jd�|j|jd�|j|jd�|j|j�yr	�r;r<rr:�assertEqual�assertIsr6�loader_state�submodule_search_locationsr9�assertFalse�has_locationr s  r�test_defaultzModuleSpecTests.test_default>s����~�~�(�(����D�K�K�@��������D�I�I�.�������d�k�k�2��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc���|jj|jd�}|j|j|j�|j	|j
d�|j	|jd�|j	|jd�|j	|jd�|j	|jd�|j|j�yr	)r;r<rrCrDr:r6rErFr9rGrHr s  r�test_default_no_loaderz&ModuleSpecTests.test_default_no_loaderIs����~�~�(�(����D�9��������D�I�I�.��
�
�d�k�k�4�(��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��|jj|j|jd��}|j	|j|j�|j	|j|j�|j|jd�|j|jd�|j|jd�|j|jd�|j|j�y�NF�r
rBr s  r�test_default_is_package_falsez-ModuleSpecTests.test_default_is_package_falseTs����~�~�(�(����D�K�K�49�)�;��	
������D�I�I�.�������d�k�k�2��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��|jj|j|jd��}|j	|j|j�|j	|j|j�|j|jd�|j|jd�|j	|jg�|j|jd�|j|j�y�NTrNrBr s  r�test_default_is_package_truez,ModuleSpecTests.test_default_is_package_true`s����~�~�(�(����D�K�K�48�)�:��	
������D�I�I�.�������d�k�k�2��
�
�d�k�k�4�(��
�
�d�'�'��.�����8�8�"�=��
�
�d�k�k�4�(�����*�*�+rc���|jj|j|jd��}|j	|j
�d|_|j
|j
�y)N�	somewherer5T)r;r<rr:rGrH�
assertTruer s  r�test_has_location_setterz(ModuleSpecTests.test_has_location_setterlsX���~�~�(�(����D�K�K�0;�)�=������*�*�+� �������)�)�*rc��ttj�|j|jdddd��}|j|j|k(�y)NF�rr:r6rFrHr9)�type�sys�implementationrr:rUr!�r�others  r�
test_equalityzModuleSpecTests.test_equalityssI��(��S�'�'�(�d�i�i�04���04�DH�6;�04�+��	
����	�	�U�*�+rc���ttj�|j|j|j
dd|j��}|j|j|�y)NTrX)	rYrZr[rr:r
r9rCr=r\s  r�test_equality_locationz&ModuleSpecTests.test_equality_location~sP��(��S�'�'�(�d�i�i�04���04�	�	�DH�6:�04���+��	
�������.rc��ttj�d|jdddd��}|j	|j
|�y)N�hamFrX)rYrZr[r:�assertNotEqualr!r\s  r�test_inequalityzModuleSpecTests.test_inequality�sD��(��S�'�'�(�e�04���04�DH�6;�04�+��	
���D�I�I�u�-rc��ttj�|j|j��}|j|j|�y)N)rr:)rYrZr[rr:rcr!r\s  r�test_inequality_incompletez*ModuleSpecTests.test_inequality_incomplete�s<��(��S�'�'�(�d�i�i�04���+��	
���D�I�I�u�-rc��|jjd|j�}|j|jd�y)N�	spam.eggsr3�r;r<r:rC�parentr s  r�test_packagezModuleSpecTests.test_package�s0���~�~�(�(��d�k�k�B��������f�-rc��|jjd|jd��}|j|jd�y)NrhTrNrir s  r�test_package_is_packagez'ModuleSpecTests.test_package_is_package�s<���~�~�(�(��d�k�k�48�)�:��	
������k�2rc���|jj}d|j_|jj}|j|d�|j|d�y)N�there)r!r9rDrC)r�before�afters   r�test_cached_setzModuleSpecTests.test_cached_set�sJ�����!�!��"��	�	���	�	� � ���
�
�f�d�#������(rc��|jj|j|j�}|j	|j
d�yr	)r;r<rr:rDr9r s  r�test_cached_no_originz%ModuleSpecTests.test_cached_no_origin�s2���~�~�(�(����D�K�K�@���
�
�d�k�k�4�(rc��|jj|j|j|j��}|j|jd�y)Nr5)r;r<rr:r
rDr9r s  r�$test_cached_with_origin_not_locationz4ModuleSpecTests.test_cached_with_origin_not_location�sB���~�~�(�(����D�K�K�04�	�	�)�;��	
�
�
�d�k�k�4�(rc��|jj|j�}|j|jj
|�yr	)rr8r
rCr=r9)r�expecteds  r�test_cached_sourcez"ModuleSpecTests.test_cached_source�s4���9�9�.�.�t�y�y�9��������-�-�x�8rc�r�d|j_|j|jjd�y)Nzspam.spamspamspam)r=r6rDr9rs r�!test_cached_source_unknown_suffixz1ModuleSpecTests.test_cached_source_unknown_suffix�s&��2��
�
���
�
�d�m�m�*�*�D�1rc��tjj}dtj_	|jj}|tj_|j|d�y#|tj_wxYwr	)rZr[�	cache_tagr=r9rD)r�originalr9s   r�$test_cached_source_missing_cache_tagz4ModuleSpecTests.test_cached_source_missing_cache_tag�sc���%�%�/�/��'+����$�	4��]�]�)�)�F�+3�C���(��
�
�f�d�#��,4�C���(�s�A/�/Bc�r�d|j_|j|jjd�y)Nzspam.pyc)r=r6rCr9rs r�test_cached_sourcelessz&ModuleSpecTests.test_cached_sourceless�s(��)��
�
��������-�-�z�:rN)r#r$r%r?rIrKrOrRrVr^r`rdrfrkrmrrrtrvryr{rr�rrrr0r02sa��+�	,�	,�
,�
,�+�	,�	/�	.�.�.�
3�)�)�
)�9�
2�
$�;rr0)rr;c�^�eZdZed��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zy
)�ModuleSpecMethodsTestsc�.�|jjSr	)�init�
_bootstraprs r�	bootstrapz ModuleSpecMethodsTests.bootstrap�s���y�y�#�#�#rc��d|_d|_|jj|j�|_t�|_|jj|j|j�|_	|jj|j|j|j��|_
d|j_yr2r7rs rr?zModuleSpecMethodsTests.setUp�r@rc�t�t�|j_|jj	|j�}|t
j|j<|jt|d��|jj|j|�|j|jd�y)Nr+r()r'r!r:r�module_from_specrZ�modulesrrG�hasattrr��_execrCr+r,s  r�	test_execz ModuleSpecMethodsTests.test_exec�s{��$�;��	�	�����+�+�D�I�I�6��!'����D�I�I��������0�1������T�Y�Y��/�������a�(rc��t�|j_t|jj�5|j
j
|j�}tj|jj}ddd�|jjd�|j|�y#1swY�8xYw�Nr()r'r!r:rrr��_loadrZr�rCr+rD)r�loaded�	installeds   r�	test_loadz ModuleSpecMethodsTests.test_load�s���$�;��	�	��
������
(��^�^�)�)�$�)�)�4�F����D�I�I�N�N�3�I�)�	
������a�(��
�
�f�i�(�)�
(�s�A
B=�=Cc���t��G�fd�dt�}|�|j_t	|jj
�5|jj|j�}tj|jj
}ddd�|j��|j��y#1swY�.xYw)Nc���eZdZ�fd�Zy)�BModuleSpecMethodsTests.test_load_replaced.<locals>.ReplacingLoaderc�@���tj|j<yr	)rZr�r#)rr-�replacements  �rr.zNModuleSpecMethodsTests.test_load_replaced.<locals>.ReplacingLoader.exec_modules���/:����F�O�O�,rN�r#r$r%r.)r�s�r�ReplacingLoaderr�s���
;rr�)�objectrr!r:rrr�r�rZr�rD)rr�r�r�r�s    @r�test_load_replacedz)ModuleSpecMethodsTests.test_load_replaceds�����h��	;�j�	;�+�,��	�	��
������
(��^�^�)�)�$�)�)�4�F����D�I�I�N�N�3�I�)�	
�
�
�f�k�*��
�
�i��-�)�
(�s
�A
C�Cc��Gd�dt�}|�|j_t|jj�5|jt�5|jj|j�}ddd�|j|jjtj�ddd�y#1swY�FxYw#1swYyxYw)Nc��eZdZd�Zy)�=ModuleSpecMethodsTests.test_load_failed.<locals>.FailedLoaderc��t�r	)�RuntimeErrorr,s  rr.zIModuleSpecMethodsTests.test_load_failed.<locals>.FailedLoader.exec_modules��"�"rNr�rrr�FailedLoaderr�s��
#rr��rr!r:rr�assertRaisesr�r�r��assertNotInrZr��rr�r�s   r�test_load_failedz'ModuleSpecMethodsTests.test_load_failed
s���	#�:�	#�(�>��	�	��
������
(��"�"�<�0����-�-�d�i�i�8��1����T�Y�Y�^�^�S�[�[�9�)�
(�0�0��)�
(��$�C�&C�<C�C	�C�Cc��Gd�dt�}|�|j_t|jj�5|jt�5|jj|j�}ddd�|j|jjtj�ddd�y#1swY�FxYw#1swYyxYw)Nc��eZdZd�Zy)�EModuleSpecMethodsTests.test_load_failed_removed.<locals>.FailedLoaderc�D�tj|j=t�r	)rZr�r#r�r,s  rr.zQModuleSpecMethodsTests.test_load_failed_removed.<locals>.FailedLoader.exec_modules���K�K����0�"�"rNr�rrrr�r�s��
#rr�r�r�s   r�test_load_failed_removedz/ModuleSpecMethodsTests.test_load_failed_removeds���	#�:�	#�(�>��	�	��
������
(��"�"�<�0����-�-�d�i�i�8��1����T�Y�Y�^�^�S�[�[�9�)�
(�0�0��)�
(�r�c���t��tj�5tjdt�G�fd�dt
�}|�|j_t|jj�5|jj|j�}|jtj|jj��ddd�ddd�y#1swY�xYw#1swYyxYw)N�ignorec���eZdZ�fd�Zy)�UModuleSpecMethodsTests.test_load_legacy_attributes_immutable.<locals>.ImmutableLoaderc�.���tj|<�Sr	)rZr�)rrr-s  �r�load_modulezaModuleSpecMethodsTests.test_load_legacy_attributes_immutable.<locals>.ImmutableLoader.load_module's���(.�C�K�K��%�!�MrN)r#r$r%r�)r-s�r�ImmutableLoaderr�&s���"rr�)r��warnings�catch_warnings�simplefilter�
ImportWarningrr!r:rrr�r�rDrZr�)rr�r�r-s   @r�%test_load_legacy_attributes_immutablez<ModuleSpecMethodsTests.test_load_legacy_attributes_immutable"s�������
�
$�
$�
&��!�!�(�M�:�
"�*�
"� /�0�D�I�I���T�Y�Y�^�^�,����-�-�d�i�i�8���
�
�c�k�k�$�)�)�.�.�9�6�B�-�'�
&�-�,��'�
&�s%�A!C;�AC/�C;�/C8	�4C;�;Dc��t�|j_t|jj�5|j
j
|j�}|j
j|j|�}tj|jj}ddd�|jjd�|j|�|j|�y#1swY�JxYwr�)
r'r!r:rrr�r�r�rZr�rCr+rD)rr��reloadedr�s    r�test_reloadz"ModuleSpecMethodsTests.test_reload2s���$�;��	�	��
������
(��^�^�)�)�$�)�)�4�F��~�~�+�+�D�I�I�v�>�H����D�I�I�N�N�3�I�)�
	
������a�(��
�
�h��'��
�
�i��(�)�
(�s�A3C5�5C>c��t�|j_t|jj�5|j
j
|j�}d|_|j
j|j|�}ddd�|jjd�|j|�y#1swY�8xYw)N�r()r'r!r:rrr�r�r+r�rCrD�rr�r�s   r�test_reload_modifiedz+ModuleSpecMethodsTests.test_reload_modified=s���$�;��	�	��
������
(��^�^�)�)�$�)�)�4�F��F�K��~�~�+�+�D�I�I�v�>�H�)�
	
������a�(��
�
�h��'�
)�
(�s�AC�Cc��t�|j_t|jj�5|j
j
|j�}d|_|j
j|j|�}ddd�|jj�|j|�y#1swY�7xYw�NF)r'r!r:rrr�r��	availabler�rGrDr�s   r�test_reload_extra_attributesz3ModuleSpecMethodsTests.test_reload_extra_attributesGs���$�;��	�	��
������
(��^�^�)�)�$�)�)�4�F�$�F���~�~�+�+�D�I�I�v�>�H�)�
	
����)�)�*��
�
�h��'�
)�
(�s�AC�Cc�^�t�|j_t|jj�5|j
j
|j�}d|_|`|`	|`
|j
j|j|�ddd�|jj|jj�|j|j|jj�|j|j|jj�|j|j|j�|jt!|d��|jt!|d��|jt!|d��y#1swY��xYw)Nrb�__path__�__file__�
__cached__)r'r!r:rrr�r�r#�
__loader__�__package__�__spec__r�rCrDrjrGr�)rr�s  r�test_reload_init_module_attrsz4ModuleSpecMethodsTests.test_reload_init_module_attrsQs'��$�;��	�	��
������
(��^�^�)�)�$�)�)�4�F�#�F�O��!��"����N�N� � ����F�3�
)�	
������$�)�)�.�.�9��
�
�f�'�'����)9�)9�:�����+�+�T�Y�Y�-=�-=�>��
�
�f�o�o�t�y�y�1�������4�5�������4�5�������6�7�)�
(�s�AF"�"F,N)r#r$r%�propertyr�r?r�r�r�r�r�r�r�r�r�r�rrrr�r��sL��
�$��$�+�)�)�.�:�	:�C� 	)�(�(�8rr�)r�rr;c��eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�FactoryTestsc�6�d|_tjjd�|_|jj|j�|_t�|_t|j�|_	t|jd�|_
y)Nr3r4T)r�osr
�abspathrr8r9rr:�
fileloader�	pkgloaderrs rr?zFactoryTests.setUplsb����	��G�G�O�O�I�.��	��i�i�1�1�$�)�)�<��� �l���$�T�Y�Y�/���#�D�I�I�t�4��rc��|jj|j|j�}|j	|j|j�|j	|j|j�|j|jd�|j|jd�|j|jd�|j|jd�|j|j�yr	�r�spec_from_loaderrr:rCrDr6rErFr9rGrHr s  r�test_spec_from_loader_defaultz*FactoryTests.test_spec_from_loader_defaultvs����y�y�)�)�$�)�)�T�[�[�A��������D�I�I�.�������d�k�k�2��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��Gd�d�}|�}|jj|j|�}|j|j|j�|j|j|�|j|jd�|j|jd�|j|jd�|j|jd�|j|j�y)Nc��eZdZd�Zy)�NFactoryTests.test_spec_from_loader_default_with_bad_is_package.<locals>.Loaderc��t�r	��ImportErrorrs  rr
zYFactoryTests.test_spec_from_loader_default_with_bad_is_package.<locals>.Loader.is_package����!�!rN�r#r$r%r
rrr�Loaderr�����
"rr�)rr�rrCr:rDr6rErFr9rGrH�rr�r:r!s    r�1test_spec_from_loader_default_with_bad_is_packagez>FactoryTests.test_spec_from_loader_default_with_bad_is_package�s���	"�	"�����y�y�)�)�$�)�)�V�<��������D�I�I�.�������f�-��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��d}|jj|j|j|��}|j	|j|j�|j	|j|j�|j|j|�|j|jd�|j|jd�|j|jd�|j|j�y)Nzsomewhere over the rainbowr5r��rr6r!s   r�test_spec_from_loader_originz)FactoryTests.test_spec_from_loader_origin�s���-���y�y�)�)�$�)�)�T�[�[�17�*�9��	
������D�I�I�.�������d�k�k�2��
�
�d�k�k�6�*��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��|jj|j|jd��}|j	|j|j�|j	|j|j�|j|jd�|j|jd�|j|jd�|j|jd�|j|j�yrMr�r s  r�&test_spec_from_loader_is_package_falsez3FactoryTests.test_spec_from_loader_is_package_false�s����y�y�)�)�$�)�)�T�[�[�5:�*�<��	
������D�I�I�.�������d�k�k�2��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��|jj|j|jd��}|j	|j|j�|j	|j|j�|j|jd�|j|jd�|j	|jg�|j|jd�|j|j�yrQr�r s  r�%test_spec_from_loader_is_package_truez2FactoryTests.test_spec_from_loader_is_package_true�s����y�y�)�)�$�)�)�T�[�[�59�*�;��	
������D�I�I�.�������d�k�k�2��
�
�d�k�k�4�(��
�
�d�'�'��.�����8�8�"�=��
�
�d�k�k�4�(�����*�*�+rc��d}|jj|j|j|d��}|j	|j|j�|j	|j|j�|j|j|�|j|jd�|j	|jg�|j|jd�|j|j�y)Nzwhere the streets have no nameT)r6r
r�r�s   r�+test_spec_from_loader_origin_and_is_packagez8FactoryTests.test_spec_from_loader_origin_and_is_package�s���1���y�y�)�)�$�)�)�T�[�[�17�D�*�J��	
������D�I�I�.�������d�k�k�2��
�
�d�k�k�6�*��
�
�d�'�'��.�����8�8�"�=��
�
�d�k�k�4�(�����*�*�+rc��td��}|jj|j|�}|j	|j|j�|j	|j
|�|j
|jd�|j
|jd�|j
|jd�|j
|jd�|j|j�yrM�
rrr�rrCr:rDr6rErFr9rGrH�rr:r!s   r�2test_spec_from_loader_is_package_with_loader_falsez?FactoryTests.test_spec_from_loader_is_package_with_loader_false�s����u�-���y�y�)�)�$�)�)�V�<��������D�I�I�.�������f�-��
�
�d�k�k�4�(��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����*�*�+rc��td��}|jj|j|�}|j	|j|j�|j	|j
|�|j
|jd�|j
|jd�|j	|jg�|j
|jd�|j|j�yrQr�r�s   r�1test_spec_from_loader_is_package_with_loader_truez>FactoryTests.test_spec_from_loader_is_package_with_loader_true�s����t�,���y�y�)�)�$�)�)�V�<��������D�I�I�.�������f�-��
�
�d�k�k�4�(��
�
�d�'�'��.�����8�8�"�=��
�
�d�k�k�4�(�����*�*�+rc�:�|jj|j|j�}|j	|j|j�|j	|j
|j�|j	|j|j�|j|jd�|j|jd�|j	|j|j�|j|j�yr	�rr�rr�rCr:r6r
rDrErFr9rUrHr s  r�.test_spec_from_loader_default_with_file_loaderz;FactoryTests.test_spec_from_loader_default_with_file_loader�s����y�y�)�)�$�)�)�T�_�_�E��������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc�>�|jj|j|jd��}|j	|j|j�|j	|j
|j�|j	|j|j�|j|jd�|j|jd�|j	|j|j�|j|j�yrMr�r s  r�6test_spec_from_loader_is_package_false_with_fileloaderzCFactoryTests.test_spec_from_loader_is_package_false_with_fileloader�s����y�y�)�)�$�)�)�T�_�_�5:�*�<��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc�z�|jj|j|jd��}|j	|j|j�|j	|j
|j�|j	|j|j�|j|jd�tj�x}dk7r|nd}|j	|j|g�|j	|j|j�|j|j�y)NTrN�/�)rr�rr�rCr:r6r
rDrEr��getcwdrFr9rUrH�rr!�cwd�locations    r�5test_spec_from_loader_is_package_true_with_fileloaderzBFactoryTests.test_spec_from_loader_is_package_true_with_fileloader�s����y�y�)�)�$�)�)�T�_�_�59�*�;��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.�"$�)�)�+�-�3�#�5�3�2������8�8�8�*�E�������d�k�k�2�����)�)�*rc�,�|jj|j|j�}|j	|j|j�|jjj
d}|j
|j|�|j	|jj|j�|j	|jj|j�|j	|j|j�|j|jd�|j|jd�|j	|j|j�|j|j�y)N�SourceFileLoader)r�spec_from_file_locationrr
rC�__globals__�assertIsInstancer:r6rDrErFr9rUrH)rr!rs   r�$test_spec_from_file_location_defaultz1FactoryTests.test_spec_from_file_location_defaults���y�y�0�0����D�I�I�F��������D�I�I�.� �9�9�<�<�H�H�I[�\�����d�k�k�+;�<�������)�)�4�9�9�5�������)�)�4�9�9�5�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc���|jj|jtj|j
��}|j
|j|j
�yr	)rrr�pathlib�PurePathr
rCr6r s  r�*test_spec_from_file_location_path_like_argz7FactoryTests.test_spec_from_file_location_path_like_argsG���y�y�0�0����18�1A�1A�$�)�)�1L�N��������d�i�i�0rc�r�|jj|j�}|j|d�yr	�rrrrDr s  r�5test_spec_from_file_location_default_without_locationzBFactoryTests.test_spec_from_file_location_default_without_locations(���y�y�0�0����;���
�
�d�D�!rc�t�|jj|jd�}|j|d�y)Nrhr
r s  r�/test_spec_from_file_location_default_bad_suffixz<FactoryTests.test_spec_from_file_location_default_bad_suffixs*���y�y�0�0����K�H���
�
�d�D�!rc�<�|jj|j|j��}|j	|j|j�|j	|j
|j�|j	|j|j�|j|jd�|j|jd�|j	|j|j�|j|j�y�N�r:)rrrr�rCr:r6r
rDrErFr9rUrHr s  r�/test_spec_from_file_location_loader_no_locationz<FactoryTests.test_spec_from_file_location_loader_no_location s����y�y�0�0����8<���1�I��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc��|jj|j|j��}|j	|j|j�|j	|j|j�|j	|j
d�|j
|jd�|j
|jd�|j
|jd�|j|j�y)Nr�	<unknown>)rrrr:rCr6rDrErFr9rUrHr s  r�?test_spec_from_file_location_loader_no_location_no_get_filenamezLFactoryTests.test_spec_from_file_location_loader_no_location_no_get_filename,s����y�y�0�0����8<���1�E��	
������D�I�I�.�������d�k�k�2�������k�2��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����)�)�*rc��Gd�d�}|�}|jj|j|��}|j|j|j�|j|j|�|j|j
d�|j
|jd�|j
|jd�|j
|jd�|j|j�y)Nc��eZdZd�Zy)�]FactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename.<locals>.Loaderc��t�r	r�rs  rrzjFactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename.<locals>.Loader.get_filename:r�rN)r#r$r%rrrrr�r9r�rr�rr)rrrrCr:r6rDrErFr9rUrHr�s    r�@test_spec_from_file_location_loader_no_location_bad_get_filenamezMFactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename8s���	"�	"�����y�y�0�0����6�0�J��������D�I�I�.�������f�-�������k�2��
�
�d�'�'��.��
�
�d�5�5�t�<��
�
�d�k�k�4�(�����)�)�*rc�T�|jj|j|j|jd��}|j|j|j�|j|j|j�|j|j|j�|j|jd�|j|jd�|j|j|j�|j|j�y)N�r:rF�rrrr
r�rCr:r6rDrErFr9rUrHr s  r�&test_spec_from_file_location_smsl_nonez3FactoryTests.test_spec_from_file_location_smsl_noneGs����y�y�0�0����D�I�I�.2�o�o�BF�1�H��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc��|jj|j|j|jg��}|j|j|j�|j|j|j�|j|j|j�|j|jd�tj�x}dk7r|nd}|j|j|g�|j|j|j�|j|j�y)Nrr�r�)rrrr
r�rCr:r6rDrEr�r�rFr9rUrHr�s    r�'test_spec_from_file_location_smsl_emptyz4FactoryTests.test_spec_from_file_location_smsl_emptyTs����y�y�0�0����D�I�I�.2�o�o�BD�1�F��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.�"$�)�)�+�-�3�#�5�3�2������8�8�8�*�E�������d�k�k�2�����)�)�*rc�X�|jj|j|j|jdg��}|j|j|j�|j|j|j�|j|j|j�|j|jd�|j|jdg�|j|j|j�|j|j�y)Nr+rrr s  r�+test_spec_from_file_location_smsl_not_emptyz8FactoryTests.test_spec_from_file_location_smsl_not_emptybs����y�y�0�0����D�I�I�.2�o�o�CI�(�1�L��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.�����8�8�6�(�C�������d�k�k�2�����)�)�*rc��|jj|j|j|j��}|j|j|j�|j|j|j�|j|j|j�|j|jd�tj�x}dk7r|nd}|j|j|g�|j|j|j�|j|j�y)Nrr�r�)rrrr
r�rCr:r6rDrEr�r�rFr9rUrHr�s    r�)test_spec_from_file_location_smsl_defaultz6FactoryTests.test_spec_from_file_location_smsl_defaultos����y�y�0�0����D�I�I�.2�n�n�1�>��	
������D�I�I�.�������d�n�n�5�������d�i�i�0��
�
�d�'�'��.�"$�)�)�+�-�3�#�5�3�2������8�8�8�*�E�������d�k�k�2�����)�)�*rc�L�Gd�d�}|�}|jj|j|j|��}|j	|j|j�|j	|j
|�|j	|j|j�|j|jd�|j|jd�|j	|j|j�|j|j�y)Nc��eZdZd�Zy)�RFactoryTests.test_spec_from_file_location_smsl_default_not_package.<locals>.Loaderc��yr�rrs  rr
z]FactoryTests.test_spec_from_file_location_smsl_default_not_package.<locals>.Loader.is_package~s��rNr�rrrr�r)}s��
rr�r�
rrrr
rCr:r6rDrErFr9rUrHr�s    r�5test_spec_from_file_location_smsl_default_not_packagezBFactoryTests.test_spec_from_file_location_smsl_default_not_package|s���	�	�����y�y�0�0����D�I�I�8>�1�@��	
������D�I�I�.�������f�-�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc�R�|jj|j|j|j��}|j|j|j�|j|j|j�|j|j|j�|j|jd�|j|jd�|j|j|j�|j|j�yrrr s  r�7test_spec_from_file_location_smsl_default_no_is_packagezDFactoryTests.test_spec_from_file_location_smsl_default_no_is_package�s����y�y�0�0����D�I�I�.2�o�o�1�?��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc�L�Gd�d�}|�}|jj|j|j|��}|j	|j|j�|j	|j
|�|j	|j|j�|j|jd�|j|jd�|j	|j|j�|j|j�y)Nc��eZdZd�Zy)�UFactoryTests.test_spec_from_file_location_smsl_default_bad_is_package.<locals>.Loaderc��t�r	r�rs  rr
z`FactoryTests.test_spec_from_file_location_smsl_default_bad_is_package.<locals>.Loader.is_package�r�rNr�rrrr�r1�r�rr�rr+r�s    r�8test_spec_from_file_location_smsl_default_bad_is_packagezEFactoryTests.test_spec_from_file_location_smsl_default_bad_is_package�s���	"�	"�����y�y�0�0����D�I�I�8>�1�@��	
������D�I�I�.�������f�-�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rc��|jj|jtjj|j�|j��}|j|j|j�|j|j|j�|j|j|j�|j|jd�|j|jd�|j|j|j�|j|j�yr)rrrr�r
�basenamer�rCr:r6rDrErFr9rUrHr s  r�*test_spec_from_file_location_relative_pathz7FactoryTests.test_spec_from_file_location_relative_path�s����y�y�0�0�����G�G���T�Y�Y�'����1�A��	
������D�I�I�.�������d�o�o�6�������d�i�i�0��
�
�d�'�'��.��
�
�d�5�5�t�<�������d�k�k�2�����)�)�*rN)r#r$r%r?r�r�r�r�r�r�r�r�r�r�rrrrrrrrr r"r$r&r,r.r3r6rrrr�r�js���5�	,�
,�,�
,�
,�,�
,�
,�	+�
+�+�+�"1�
"�
"�

+�
+�
+�+�+�+�+�+� 
+�+� 
+rr��__main__)�test.test_importlibr�	test_util�import_importlibr�r;�os.pathr�r	�test.support.import_helperr�unittestrZr�rr'r0�	test_both�Frozen_ModuleSpecTests�Source_ModuleSpecTestsr��Frozen_ModuleSpecMethodsTests�Source_ModuleSpecMethodsTestsr��Frozen_FactoryTests�Source_FactoryTestsr#�mainrrr�<module>rFs��1�!�y�!�!�+�.��&�I�&�&�'<�=�	�!�y�!�!�"2�3����2��
����4 �
� �`;�`;�J�Y����t�y�I����G8�G8�X�Y���/�d��#,�.����
H+�H+�X
�Y����D�I�F�����z���H�M�M�O�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists