403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/test_importlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_importlib/__pycache__/test_util.cpython-315.pyc
R
>lqj��c� �]QHGs\OQ2s\OQ2s\OQ2s\OQ2s]PHs]QH G	s	]PH(s
]PH,s]PH0s]PH4s
]QH8Gs]QH@Gs]PHHs]PHLs]PHPs]PHTs]PHXs]PH^s]PHfs]PHjsQ	Q
2s\O:\\Q5vssQQ2s \O:\ \\\Q
5vs!s"QQ2s#\O:\#\Q5vs$s%QQ2s&\O:\&\\\Q5vs's(QQ2s)\O:\)\Q5vs*s+QQ2s,\O:\,\Q5vs-s.QQ\O^2s)\O`\PIQ2QQ\O^22s1QQ2s2QQ\O^2s3\4Q6Xc\Oj2P!P!\cPsCK]h9h\cPsCKhh9h\cPsCKsh9h) �)�utilz
importlib.abc�	importlibzimportlib.machineryzimportlib.util)�_bootstrap_external)�support)�	os_helperc�8`�\sQs]$snQsQsQsQsQsUs	P!)�DecodeSourceBytesTestsustring ='ü'c��UOOQ2oUOUOO	U2UO2P!)�utf-8��source�encode�assertEqualr�
decode_source)�self�source_bytess& �2C:\Python315\\Lib\test\test_importlib\test_util.py�test_ut8_default�'DecodeSourceBytesTests.test_ut8_default(s9���{�{�)�)�'�2��������0�0��>����L�c���QUO*oUOQ2oV!OQ26wfPgUOUOO	U2U2P!)z# coding=latin-1
zlatin-1r
r�rrrs&  r�test_specified_encoding�.DecodeSourceBytesTests.test_specified_encoding,sR��%����3���}�}�Y�/���}�}�W�5�5�5�5�������0�0��>��Grc��QOUOUO,2oUOQ2oUOUOOU2QOUOUO,22P!)z
r
�
)�joinrr
rrrrs&  r�test_universal_newlines�.DecodeSourceBytesTests.test_universal_newlines2sd�����d�k�k�4�;�;�7�8���}�}�W�-��������0�0��>����D�K�K����#=�>�	@r�)
�__name__�
__module__�__qualname__�__firstlineno__rrrr�__static_attributes__�__classdictcell__��
__classdict__s@rrr$s"����
�F�M�H�@�@rrc�X`�\sQs]>snQsQsQsQsQsQs	Qs
QsQ	sQ
s
UsP!)�ModuleFromSpecTestsc��QQ2oUOOQU22oUO[29^tt^2UOOU2oPPP2P!)%fhP!9h)c�(`�\sQs]AsnQsQsUsP!)�9ModuleFromSpecTests.test_no_create_module.<locals>.Loaderc��P!�Nr)r�modules&&r�exec_module�EModuleFromSpecTests.test_no_create_module.<locals>.Loader.exec_moduleBs��rr)r r!r"r#r0r$r%r&s@r�Loaderr,As����
�
rr2�test)�	machinery�
ModuleSpec�assertRaises�ImportErrorr�module_from_spec�rr2�specr/s&   r�test_no_create_module�)ModuleFromSpecTests.test_no_create_module@sZ��	�	��~�~�(�(����:��
�
�
�{�
+�
+��Y�Y�/�/��5�F�,�
+�
+�
+�s�
A0�0B	�9B	c�J�QQUOO2oUOOQU22oUOOU2oUO
U[O2UOUOUO2P!)c�(`�\sQs]IsnQsQsUsP!)�CModuleFromSpecTests.test_create_module_returns_None.<locals>.Loaderc��P!r.r)rr:s&&r�
create_module�QModuleFromSpecTests.test_create_module_returns_None.<locals>.Loader.create_moduleJs��rr�r r!r"r#rAr$r%r&s@rr2r?Is����
�
rr2r3)�abcr2r4r5rr8�assertIsInstance�types�
ModuleTyperr �namer9s&   r�test_create_module_returns_None�3ModuleFromSpecTests.test_create_module_returns_NoneHsr��	�T�X�X�_�_�	��~�~�(�(����:�����+�+�D�1�����f�e�&6�&6�7�������$�)�)�4rc�\``�QnQQ[O2nUU1QkQUOO2oUOOQU22oUOOU2oUOUR2UOUOR2P!)zalready setc��\sQs]SsQsP!)�<ModuleFromSpecTests.test_create_module.<locals>.CustomModuler)r r!r"r#r$rrr�CustomModulerMSs��rrNc�2:`�\sQs]UsnUU1QksQsUsP!)�6ModuleFromSpecTests.test_create_module.<locals>.Loaderc�<:�RUO2oRUmU!r.)rHr )rr:r/rNrHs&& ��rrA�DModuleFromSpecTests.test_create_module.<locals>.Loader.create_moduleVs���%�d�i�i�0��"&����
rrrC)r'rNrHs@��rr2rPUs����
�
rr2r3)rFrGrDr2r4r5rr8rErr )rr2r:r/rNrHs&   @@r�test_create_module�&ModuleFromSpecTests.test_create_moduleQs������	�5�+�+�	�	�	�T�X�X�_�_�	�
�~�~�(�(����:�����+�+�D�1�����f�l�3�������$�/rc���UOOQ[22oUOO	U2oUOUOUO2P!�r3)r4r5�objectrr8rr rH�rr:r/s&  r�
test___name__�!ModuleFromSpecTests.test___name___sF���~�~�(�(����:�����+�+�D�1��������$�)�)�4rc��UOOQ[22oUOO	U2oUOUOU2P!rV)r4r5rWrr8r�__spec__rXs&  r�
test___spec__�!ModuleFromSpecTests.test___spec__dsB���~�~�(�(����:�����+�+�D�1��������$�/rc���[2oUOOQU2oUOO	U2oUOUOU2P!rV)rWr4r5rr8�assertIs�
__loader__)r�loaderr:r/s&   r�test___loader__�#ModuleFromSpecTests.test___loader__isG������~�~�(�(���8�����+�+�D�1���
�
�f�'�'��0rc���UOOQ[22oUOO	U2oUOUOUO2P!)ztest.pkg)r4r5rWrr8r�__package__�parentrXs&  r�test___package__�$ModuleFromSpecTests.test___package__osH���~�~�(�(��V�X�>�����+�+�D�1������+�+�T�[�[�9rc���UOOQ[2P	Q5oUOO	U2oUOUOUO2P!)r3)�
is_package)r4r5rWrr8r�__path__�submodule_search_locationsrXs&  r�
test___path__�!ModuleFromSpecTests.test___path__tsM���~�~�(�(����d�(�K�����+�+�D�1��������$�*I�*I�Jrc���UOOQ[2QQ5oP	UmUOOU2oUO
UOUO2P!)r3z	some/path)�origin)	r4r5rW�has_locationrr8r�__file__rqrXs&  r�
test___file__�!ModuleFromSpecTests.test___file__ysS���~�~�(�(����+�(�N�� ������+�+�D�1��������$�+�+�6rr)r r!r"r#r;rIrSrYr]rcrhrnrtr$r%r&s@rr)r)>s8����6�5�0�5�
0�
1�:�
K�
7�7rr))rDr4rc�J`�\sQs]�snQsQsQsQsQsQs	Qs
QsUsP!)	�ResolveNameTestsz$Tests importlib.util.resolve_name().c�`�UOQUOOQP22P!)�bacon�rr�resolve_name�rs&r�
test_absolute�ResolveNameTests.test_absolute�s#������$�)�)�"8�"8��$�"G�Hrc�`�UOQUOOQQ22P!)ry�spamrzr|s&r�test_absolute_within_package�-ResolveNameTests.test_absolute_within_package�s#������$�)�)�"8�"8��&�"I�Jrc��UO[29^tt^2UOOQP2PPP2P!)%fhP!9h)�.bacon�r6r7rr{r|s&r�test_no_package� ResolveNameTests.test_no_package�s6��
�
�
�{�
+�
+��I�I�"�"�8�R�0�,�
+�
+�
+���A�A	�A	c�`�UOQUOOQQ22P!)zspam.eggs.baconr��	spam.eggsrzr|s&r�test_in_package� ResolveNameTests.test_in_package�s(�����*����/�/��+�F�	Hrc�`�UOQUOOQQ22P!)z
spam.bacon�..baconr�rzr|s&r�test_other_package�#ResolveNameTests.test_other_package�s'���������/�/�	�;�G�	Irc��UO[29^tt^2UOOQQ2PPP2P!)%fhP!9h)r�r�r�r|s&r�test_escape�ResolveNameTests.test_escape�s6��
�
�
�{�
+�
+��I�I�"�"�9�f�5�,�
+�
+�
+�r�r)
r r!r"r#�__doc__r}r�r�r�r�r�r$r%r&s@rrwrw�s/����.�I�K�1�
H�
I�
6�6rrwc�~`�\sQs]�snQQ2sQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsUsP!)�
FindSpecTestsc�6`�\sQs]�sn\QQk2sQsUsP!)�FindSpecTests.FakeMetaFinderc��VU1!r.r)rH�path�targets&&&r�	find_spec�&FindSpecTests.FakeMetaFinder.find_spec�s
��<@��<N�5Nrr)NN)r r!r"r#�staticmethodr�r$r%r&s@r�FakeMetaFinderr��s����	�N�
�Nrr�c�~�Qo[OU29^tt^2[OU2oQoUOOV2oV2mVBmU[OU$UOOU2oUOVT2PPP2P!)%fhP!9h��some_modz	a loader!)r�uncacherFrGr4r5rar\�sys�modulesr�r�rrHr/rbr:�founds&     r�test_sys_modules�FindSpecTests.test_sys_modules�s�����
�\�\�$�
�
��%�%�d�+�F� �F��>�>�,�,�T�:�D� &��"�O� &�C�K�K����I�I�'�'��-�E����U�)� �
�
�
�s�A?B+�+B<	�4B<	c�v�Qo[OU29^tt^2[OU2oU;QoUO
O
V2oVBmU[OU$UOOU2oUOVT2PPP2P!)%fhP!9hr�)rr�rFrGrar4r5r\r�r�r�rr�s&     r�#test_sys_modules_without___loader__�1FindSpecTests.test_sys_modules_without___loader__�s�����
�\�\�$�
�
��%�%�d�+�F��!� �F��>�>�,�,�T�:�D�"�O� &�C�K�K����I�I�'�'��-�E����U�)� �
�
�
�s�A;B'�'B8	�0B8	c	��Qo[OU29^tt^2[OU2oPUmU[
OU$UO[29^tt^2UOOU2PPP2PPP2P!)%fhK9h)%fhP!9h�r�)
rr�rFrGr\r�r�r6�
ValueErrorr��rrHr/s&  r�test_sys_modules_spec_is_None�+FindSpecTests.test_sys_modules_spec_is_None�s�����
�\�\�$�
�
��%�%�d�+�F�"�F�O� &�C�K�K����"�"�:�.�.��	�	�#�#�D�)�/�	 �
�/�.��	 �
�
�s0�AB1�0B	�B1�B.
�'B.
�)B1�1C	�:C	c�p�Qo[OU29^tt^2[OU2oUOOUP2oV2mU[OU$UOOU2oUOVC2PPP2P!)%fhP!9hr�)rr�rFrGr4r5r\r�r�r�r)rrHr/r:r�s&    r�test_sys_modules_loader_is_None�-FindSpecTests.test_sys_modules_loader_is_None�s�����
�\�\�$�
�
��%�%�d�+�F��>�>�,�,�T�4�8�D�"�O� &�C�K�K����I�I�'�'��-�E����U�)�
 �
�
�
�s�A8B$�$B5	�-B5	c	��Qo[OU29^tt^2[OU2oU;U[OU$UO[29^tt^2UOOU2PPP2PPP2P![
cKkh9h)%fhK+9h)%fhP!9hr�)rr�rFrGr\�AttributeErrorr�r�r6r�r�r�s&  r� test_sys_modules_spec_is_not_set�.FindSpecTests.test_sys_modules_spec_is_not_set�s�����
�\�\�$�
�
��%�%�d�+�F�
��O�!'�C�K�K����"�"�:�.�.��	�	�#�#�D�)�/� �
��"�
��
��/�.�� �
�
�sW�B>�B�0B>�,B+	�B>�	B(�$B(�%B>�'B(�(B>�+B;
�4B;
�6B>�>C	�C	c
�j�Qo[OU29^tt^2[OUO,Q59^tt^2UO	UPP1UOOU22PPP2PPP2P!)%fhK9h)%fhP!9h)r�)�	meta_path)rr��import_stater�rr�)rrHs& r�test_success�FindSpecTests.test_success�sz����
�\�\�$�
�
��"�"�d�.A�.A�-B�C�C�� � �$��d�!3�!%���!4�!4�T�!:�<�D� �
�C�C�� �
�
�s/�+B!�
/B	�<B!�B
�B
�B!�!B2	�*B2	c�\�UOUOOQ22P!)�nevergoingtofindthismodule)�assertIsNonerr�r|s&r�test_nothing�FindSpecTests.test_nothing�s �����$�)�)�-�-�.J�K�Lrc��QoQo[OUP	Q59^tt^2o[OVU2vqEUOOU2oUO	UP2UOU[
[O22UOU[
[O22UOOU2oUOVv2PPP2P!)%fhP!9h�r��ham��pkg�r�temp_module�	submoduler��assertIsNot�assertIn�sortedr�r��assertNotInr�rrH�subname�pkg_dir�fullname�_r:�
spec_agains&       r�test_find_submodule�!FindSpecTests.test_find_submodule�s�������
�
�
�d��
-�
-���.�.���@�K�H��9�9�&�&�x�0�D����T�4�(��M�M�$��s�{�{� 3�4����X�v�c�k�k�':�;����,�,�X�6�J����Z�.�.�
-�
-�
-�s�CC5�5D	�>D	c�H�QoQo[OUP	Q59^tt^2oUOOU2[OVU2vqEUOOU2oUO
UP2UOU[[O22UOU[[O22UOOU2oUOVv2PPP2P!)%fhP!9hr�)
rr��init�
import_moduler�r�r�r�r�r�r�r�rr�s&       r�+test_find_submodule_parent_already_imported�9FindSpecTests.test_find_submodule_parent_already_importeds�������
�
�
�d��
-�
-���I�I�#�#�D�)��.�.���@�K�H��9�9�&�&�x�0�D����T�4�(��M�M�$��s�{�{� 3�4����X�v�c�k�k�':�;����,�,�X�6�J����Z�.�.�
-�
-�
-�s�C D�D!	�D!	c�$�QoQo[OUP	Q59^tt^2o[OVU2vqEQU*oUOOVa2oUO	UP2UOU[
[O22UOU[
[O22UOOU2oUOV�2PPP2P!)%fhP!9h�r�r�r��.r�)	rrHr�r�r�r��relnamer:r�s	&        r�test_find_relative_module�'FindSpecTests.test_find_relative_modules�������
�
�
�d��
-�
-���.�.���@�K�H��G�m�G��9�9�&�&�w�5�D����T�4�(��M�M�$��s�{�{� 3�4����X�v�c�k�k�':�;����,�,�X�6�J����Z�.�.�
-�
-�
-�s�CC>�>D	�D	c	��QoQo[OUP	Q59^tt^2o[OVU2vqEQU*oUO[29^tt^2UOOU2PPP2UO
U[[O22UO
U[[O22PPP2P!)%fhKl9h)%fhP!9hr�)
rr�r�r6r7r�r�r�r�r�)rrHr�r�r�r�r�s&      r�)test_find_relative_module_missing_package�7FindSpecTests.test_find_relative_module_missing_packages�������
�
�
�d��
-�
-���.�.���@�K�H��G�m�G��"�"�;�/�/��	�	�#�#�G�,�0����T�6�#�+�+�#6�7����X�v�c�k�k�':�;�
.�
-�0�/��.�
-�
-�s1�AC9�&C&	�AC9�&C6
�/C6
�1C9�9D
	�D
	c��UO[29^tt^2UOOQ2PPP2P!)%fhP!9h)zmodule.name)r6�ModuleNotFoundErrorrr�r|s&r�test_find_submodule_in_module�+FindSpecTests.test_find_submodule_in_module(s7���
�
�2�
3�
3��I�I���
�.�4�
3�
3�
3���A�A	�A	r)r r!r"r#r�r�r�r�r�r�r�r�r�r�r�r�r�r$r%r&s@rr�r��sS����O�O�
*�
*�*�*�
*�<�M�/�/�/�	<�/�/rr�)r�rr4c�.`�\sQsQsnQsQsQsUsP!)�MagicNumberTests�5c�f�UO[UOO2]2P!)�)r�lenr�MAGIC_NUMBERr|s&r�test_length�MagicNumberTests.test_length7s!������T�Y�Y�3�3�4�a�8rc�T�UOUOOQ2P!)s
)�assertEndsWithrr�r|s&r�test_incorporates_rn�%MagicNumberTests.test_incorporates_rn;s�����D�I�I�2�2�G�<rr)r r!r"r#r�r�r$r%r&s@rr�r�5s����9�=�=rr�c�	`�\sQsQsnQs\OOsQs	Qs
\O\OOPIQ2Q2s
Qs\O\OOPIQ2Q	2s\O\OOPIQ2Q
2s\O\OOPIQ2Q2s\O\OOPIQ2Q2s\O\OOPIQ2Q
2s\O\OOPIQ2Q2s\O*\O.Q6H9%c\O0Q6HQ2\O\OOPIQ2Q22s\O\OOPIQ2Q2s\O\OOPIQ2Q2sQs\O\OOPIQ2Q2s\O\OOPIQ2Q2s\O\OOPIQ2Q2s\O\OOPIQ2Q2s \O\OOPIQ2Q2s!\O\OOPIQ2Q2s"\O\OOPIQ2Q2s#\O\OOPIQ2Q2s$\O\OOPIQ2Q2s%\O\OOPIQ2Q2s&\O\OOPIQ2Q 2s'\O\OOPIQ2Q!2s(\O\OOPIQ2Q"2s)\O\OOPIQ2Q#2s*Q$s+Us,P!)%�PEP3147Tests�EzMTests of PEP 3147-related functions: cache_from_source and source_from_cache.c�H�[OUmP[mP!r.)r��pycache_prefix�_orig_pycache_prefixr|s&r�setUp�PEP3147Tests.setUpKs��
%(�$6�$6��!�!��rc�2�UO[mP!r.)r�r�r�r|s&r�tearDown�PEP3147Tests.tearDownSs��!�6�6��rz1requires sys.implementation.cache_tag not be Nonec	��[OOQQQQ2o[OOQQQQQOUO22oUOUOOUPQ5U2P!��foo�bar�baz�qux.py�__pycache__�
qux.{}.pyc��optimization��osr�r�format�tagrr�cache_from_source�rr��expects&  r�test_cache_from_source�#PEP3147Tests.test_cache_from_sourceVso��
�w�w�|�|�E�5�%��:�������e�U�E�=�*�1�1�$�(�(�;�=��������4�4�T��4�K��	!rc	�F�[O[OQP29^tt^2UO	[
29^tt^2UOOQ2PPP2PPP2P!)%fhK9h)%fhP!9h)�	cache_tagzwhatever.py)r�	swap_attrr��implementationr6�NotImplementedErrorrrr|s&r�#test_cache_from_source_no_cache_tag�0PEP3147Tests.test_cache_from_source_no_cache_tagasc��
�
�
�s�1�1�;��
E�
E��"�"�#6�7�7��	�	�+�+�M�:�8�F�
E�7�7��F�
E�
E�s/�B�A<	�*B�<B
�B
�B�B 	�B 	z4requires sys.implementation.cache_tag to not be Nonec��[OOQQ2o[OOQQQOUO22oUOUOOUPQ5U2P!)zfoo.bar�filer	z
file{}.pycrr
rs&  r�test_cache_from_source_no_dot�*PEP3147Tests.test_cache_from_source_no_dotgsg���w�w�|�|�I�v�.�������i��*�1�1�$�(�(�;�=��������4�4�T��4�K��	!rc���Qo[OOQQOUO22oUOUOOUPQ5U2P!��foo.pyr	z
foo.{}.pycrr
rs&  r�test_cache_from_source_cwd�'PEP3147Tests.test_cache_from_source_cwdqsS���������m�\�-@�-@����-J�K��������4�4�T��4�K��	!rc���Qo[OOQQOUO22oUOUOOUPQ5U2P!r"r
rs&  r�0test_cache_from_source_optimization_empty_string�=PEP3147Tests.test_cache_from_source_optimization_empty_stringysS���������m�\�-@�-@����-J�K��������4�4�T��4�K��	!rc��Qo[OOo[OOQQO
UO22oU]6XcUQ*oLBU]6:cUQO
U2*oL"QO
U2oUOU2UOUOOUPQ5W2P!)r#r	�foo.{}�.pyc�.opt-{}.pycz){!r} is a non-standard optimization levelr)r��flags�optimizerr�rrr�skipTestrrr)rr��optimization_level�
almost_expectr�msgs&     r�(test_cache_from_source_optimization_None�5PEP3147Tests.test_cache_from_source_optimization_None�s���
�� �Y�Y�/�/�������]�H�O�O�D�H�H�4M�N�
���"�"�V�+�F�
�1�
$�"�]�%9�%9�:L�%M�M�F�=�D�D�EW�X�C��M�M�#��������4�4�T��4�M��	!rc�f�Qo[O[O*o[OOQQO
UO22oUOOVQ5oUOUUQO
U2*2UOUOOU]*Q5UQ*2UO[29^tt^2UOOUQQ5PPP2P!)%fhP!9h)r#r	r*rr,z.opt-42.pyczpath/is/bad)
�string�
ascii_letters�digitsrr�rrrrrrr6r�)rr��valid_charactersr1�gots&    r�'test_cache_from_source_optimization_set�4PEP3147Tests.test_cache_from_source_optimization_set�s���
��!�/�/�&�-�-�?�������]�H�O�O�D�H�H�4M�N�
��i�i�)�)�$�)�N������&��)=�)=�>N�)O�O�	Q�	
������4�4�T��4�K�&��6�	8��
�
�z�
*�
*��I�I�'�'��=�'�I�+�
*�
*�
*�s�7D�D0	�(D0	c
�V�[O29^tt^2[OQ2UO[29^tt^2UO
O
QP
PQ5PPP2PPP2P!)%fhK9h)%fhP!9h)�ignorer#r)�warnings�catch_warnings�simplefilterr6�	TypeErrorrrr|s&r�;test_cache_from_source_debug_override_optimization_both_set�HPEP3147Tests.test_cache_from_source_debug_override_optimization_both_set�sk���
$�
$�
&�
&��!�!�(�+��"�"�9�-�-��	�	�+�+�H�e�"�+�M�.�'�
&�-�-��'�
&�
&�s/�4B�B	�2B�B
�
B
�B�B(	� B(	�\�/z/test meaningful only where os.altsep is definedc��UOUOOQPQ5QOUO22P!)z\foo\bar\baz/qux.pyrz#\foo\bar\baz\__pycache__\qux.{}.pyc)rrrrrr|s&r�)test_sep_altsep_and_sep_cache_from_source�6PEP3147Tests.test_sep_altsep_and_sep_cache_from_source�s=��	
����I�I�'�'�(@�r�'�R�6�=�=�d�h�h�G�	Irc	��[OQQQQ2o[OO	QQQQQOUO22oUOUOOUPQ5U2P!r)
�pathlib�PurePathrr�rrrrrrrs&  r�$test_cache_from_source_path_like_arg�1PEP3147Tests.test_cache_from_source_path_like_arg�sm������u�e�X�>�������e�U�E�=�*�1�1�$�(�(�;�=��������4�4�T��4�K��	!rc	��[OOQQQQQOUO22o[OOQQQQ2oUOUOOU2U2P!�rrrr	r
r�rr�rrrrr�source_from_cachers&  r�test_source_from_cache�#PEP3147Tests.test_source_from_cache�sg��
�w�w�|�|�E�5�%��(�/�/����9�;�������e�U�E�8�<��������4�4�T�:�F�Crc	��[OOQQQ2o[O[
OQP29^tt^2UO[29^tt^2UOOU2PPP2PPP2P!)%fhK9h)%fhP!9h)�blahr	zwhatever.pycr)rr�rrrr�rr6rrrR�rr�s& r�#test_source_from_cache_no_cache_tag�0PEP3147Tests.test_source_from_cache_no_cache_tag�sy���w�w�|�|�F�M�>�B��
�
�
�s�1�1�;��
E�
E��"�"�#6�7�7��	�	�+�+�D�1�8�F�
E�7�7��F�
E�
E�s0�B0�/B	�B0�B-
�&B-
�(B0�0C	�9C	c�^�UO[UOOQ2P!)z/foo/bar/bazqux.pyc�r6r�rrRr|s&r�test_source_from_cache_bad_path�,PEP3147Tests.test_source_from_cache_bad_path�s%��
	
�����	�	�3�3�5J�	Lrc�^�UO[UOOQ2P!)zfoo.cpython-32.pycr[r|s&r�test_source_from_cache_no_slash�,PEP3147Tests.test_source_from_cache_no_slash�s%��	
�����	�	�3�3�5I�	Krc�^�UO[UOOQ2P!)z__pycache__/foo.pycr[r|s&r�#test_source_from_cache_too_few_dots�0PEP3147Tests.test_source_from_cache_too_few_dots�s%��	
�����	�	�3�3�5J�	Lrc��UO[29^tt^2UOOQ2PPP2P!)%fhP!9h)z(__pycache__/foo.cpython-32.opt-1.foo.pycr[r|s&r�$test_source_from_cache_too_many_dots�1PEP3147Tests.test_source_from_cache_too_many_dots�s:���
�
�z�
*�
*��I�I�'�'�>�
@�+�
*�
*�
*�r�c�^�UO[UOOQ2P!)z"__pycache__/foo.cpython-32.foo.pycr[r|s&r�test_source_from_cache_not_opt�+PEP3147Tests.test_source_from_cache_not_opt�s$��	
�����	�	�3�3�0�	2rc�^�UO[UOOQ2P!)z/foo/bar/foo.cpython-32.foo.pycr[r|s&r�$test_source_from_cache_no__pycache__�1PEP3147Tests.test_source_from_cache_no__pycache__�s$��	
�����	�	�3�3�-�	/rc���[OOQQOUO22oUOUOOU2Q2P!)r	zfoo.{}.opt-1.pycr#rQrWs& r�)test_source_from_cache_optimized_bytecode�6PEP3147Tests.test_source_from_cache_optimized_bytecodesG���w�w�|�|�M�+=�+D�+D�T�X�X�+N�O��������4�4�T�:�H�Erc�$�[OOQQOUO22oUO[29^tt^2UOOU2PPP2P!)%fhP!9h)r	zfoo.{}.opt-.pyc)	rr�rrrr6r�rrRrWs& r�+test_source_from_cache_missing_optimization�8PEP3147Tests.test_source_from_cache_missing_optimizationsZ���w�w�|�|�M�+<�+C�+C�D�H�H�+M�N��
�
�
�z�
*�
*��I�I�'�'��-�+�
*�
*�
*�s�A>�>B	�B	c	��[OQQQQQOUO22o[O
O
QQQQ2oUOUOOU2U2P!rP)
rKrLrrrr�rrrrRrs&  r�$test_source_from_cache_path_like_arg�1PEP3147Tests.test_source_from_cache_path_like_argse������u�e�]� ,� 3� 3�D�H�H� =�?�������e�U�E�8�<��������4�4�T�:�F�Crc
�d�[OO[OOQQ2[OO[OOQQ2[OO[OOQQ2[OO*,oPo[OQ6Xc#QoSTt,tFDp2U0MJ
	ooUQQ,*
oSFD�oUOUQ59^tt^2U[OO[OOQ	Q
QQ2*o[OOUQ	Q
QQ
O
UO22o[OU29^tt^2UOUOOUPQ5U2PPP2PPP2J�	P!ttoh)%fhK#9h)%fhCJ(9h)�tmp�bytecodeu☃ztrailing-slash�ntzC:z
\\?\C:\fooz\\localhost\c$\bar)r�rrrrr
r)rr�r�seprH�subTestrrr�temporary_pycache_prefixrr)r�pycache_prefixes�drive�prefixr�r�rs&      r�.test_cache_from_source_respects_pycache_prefix�;PEP3147Tests.test_cache_from_source_respects_pycache_prefixs���
�G�G�L�L������e�Z�8��G�G�L�L������e�X�6��G�G�L�L������e�-=�>������L�
��
��
�7�7�d�?��E�1A� C�1A�v�'�&��"�1A�
� C���0E� F�F��.�N����>��2�2��r�w�w�|�|��G�G�K�K���u�h� @�@�������"�E�5�%� �'�'����1�3���2�2�>�B�B��$�$��	�	�3�3�D�r�3�J�� �C�
3�2�/�� C�C�B��
3�2�2�s7�'H�$BH	�.H

�/H	�
H�H�H	�H/
�&H/
c
�>�[OO[OOQQ2o[OOQQQQ2o[OO	[O
22]*[OO*o[OOU[OO
[O
2U2QQQQUOQ02o[OU29^tt^2UOUOOUPQ5[OOU22PPP2P!)%fhP!9h)	rwrxrrrr�qux.r+r)
rr�rrz�
splitdrive�getcwd�relpathrrr|rr�normpath)rr�r��rootrs&    r�7test_cache_from_source_respects_pycache_prefix_relative�DPEP3147Tests.test_cache_from_source_respects_pycache_prefix_relative5s�������b�g�g�k�k�5�*�E���w�w�|�|�E�5�%��:���w�w�!�!�"�)�)�+�.�q�1�B�G�G�K�K�?���������G�G�O�O�B�I�I�K��.��5�%�4����z��!6�8���
*�
*�>�
:�
:�����	�	�+�+�D�r�+�B���� � ��(�
*�;�
:�
:�
:�s�6AF�F	�F	c	�N�[OO[OOQQ2oQo[OO[OOQQQUOQ02o[
OU29^tt^2[OQ29^tt^2UOUO
OU2U2PPP2PPP2P!)%fhK9h)%fhP!9h)rwrxrr�r+rF)rr�rrzrrr|r�
change_cwdrr�rr�r�rs&   r�2test_cache_from_source_in_root_with_pycache_prefix�?PEP3147Tests.test_cache_from_source_in_root_with_pycache_prefixGs��������b�g�g�k�k�5�*�E���������b�g�g�k�k�5�*� $�T�X�X�J�d�3�5��
�
*�
*�>�
:�
:��%�%�c�*�*�� � ����!<�!<�T�!B�F�K�+�;�
:�*�*��;�
:�
:�s0�#D�,D	�.D�D
�	D
�D�D$	�D$	c	��[OO[OOQQ2o[OOUQQQQUOQ02o[OO[OOQQQQ2o[
OU29^tt^2UOUO
OU2U2PPP2P!)%fhP!9h)rwrxrrrr�r+r�	rr�rrzrrr|rrRr�s&   r�,test_source_from_cache_inside_pycache_prefix�9PEP3147Tests.test_source_from_cache_inside_pycache_prefixSs��������b�g�g�k�k�5�*�E���w�w�|�|�N�E�5�%�"�4�8�8�*�D�1�3�������b�g�g�k�k�5�%���I��
�
*�
*�>�
:�
:����T�Y�Y�8�8��>��G�;�
:�
:�
:�s�,C;�;D	�D	c	���[OO[OOQQ2o[OOQQQQQUOQ02o[OOQQQQ2o[
OU29^tt^2UOUO
OU2U2PPP2P!)%fhP!9h)	rwrxrrrr	r�r+rr�r�s&   r�-test_source_from_cache_outside_pycache_prefix�:PEP3147Tests.test_source_from_cache_outside_pycache_prefix`s��������b�g�g�k�k�5�*�E���w�w�|�|�E�5�%��"�4�8�8�*�D�1�3�������e�U�E�8�<��
�
*�
*�>�
:�
:����T�Y�Y�8�8��>��G�;�
:�
:�
:�s�,,C"�"C3	�+C3	)r�)-r r!r"r#r�r�rrrr�r�unittest�skipIfrrrr$r'r3r;rC�
skipUnlessrrz�altseprHrMrSrXr\r_rbrerhrkrnrqrtr�r�r�r�r�r$r%r&s@rr�r�Esr����W�

�
�
�
&�
&�C�"�7��_�_�S�'�'�1�1�T�9�H�J�!�J�!�;��_�_�S�'�'�1�1�T�9�K�M�!�M�!��_�_�S�'�'�1�1�T�9�K�M�!�M�!��_�_�S�'�'�1�1�T�9�K�M�!�M�!��_�_�S�'�'�1�1�T�9�K�M�!�M�!� �_�_�S�'�'�1�1�T�9�K�M�J�M�J�"�_�_�S�'�'�1�1�T�9�K�M�N�M�N�������4��<�<�B�I�I��,<�F�H�
�_�_�S�'�'�1�1�T�9�K�M�I�M�H�I��_�_�S�'�'�1�1�T�9�H�J�!�J�!��_�_�S�'�'�1�1�T�9�K�M�D�M�D�2��_�_�S�'�'�1�1�T�9�K�M�L�M�L��_�_�S�'�'�1�1�T�9�K�M�K�M�K�
�_�_�S�'�'�1�1�T�9�K�M�L�M�L�
�_�_�S�'�'�1�1�T�9�K�M�@�M�@�
�_�_�S�'�'�1�1�T�9�K�M�2�M�2��_�_�S�'�'�1�1�T�9�K�M�/�M�/��_�_�S�'�'�1�1�T�9�K�M�F�M�F�
�_�_�S�'�'�1�1�T�9�K�M�.�M�.��_�_�S�'�'�1�1�T�9�K�M�D�M�D��_�_�S�'�'�1�1�T�9�K�M� �M� �6�_�_�S�'�'�1�1�T�9�K�M�*�M�*� �_�_�S�'�'�1�1�T�9�K�M�L�M�L��_�_�S�'�'�1�1�T�9�K�M�	H�M�	H��_�_�S�'�'�1�1�T�9�K�M�	H�M�	Hrr�c�`�\sQsQsnQs\O\OOQ7Q2Q2s
QsUsP!)r��sz9
Test release compatibility issues relating to importlib
z8only applies to candidate or final python release levelsc��Qo[O[OOQ*Q2oQoUOVU2P!)iR:N�N�littlea�To avoid breaking backwards compatibility with cached bytecode files that can't be automatically regenerated by the current user, candidate and final releases require the current  importlib.util.MAGIC_NUMBER to match the expected magic number in this test. Set the expected magic number in this test to the current MAGIC_NUMBER to continue with the release.

Changing the MAGIC_NUMBER for a maintenance release requires discussion on Discourse and notification of community stakeholders.)�int�
from_bytesrrr�r)r�EXPECTED_MAGIC_NUMBER�actualr2s&   r�test_magic_number�"MagicNumberTests.test_magic_numberwsF��&!%�����	��� ;� ;�B� ?��J��	
&�	�	
���.��<rr)�	candidate�final)
r r!r"r#r�r�r�r��version_info�releaselevelr�r$r%r&s@rr�r�ssA�����������%�%�)?�?�B��=�	�=rzsubinterpreters requiredc�"`�\sQsQsnQsQs\O\PIQ2\	O2Q22s\O\PIQ2\	OQ2Q22s\O\PIQ2Q	2sQ
sUsP!)�,IncompatibleExtensionModuleRestrictionsTests�c�`�[OQ2nU1QkoUOU2[ORU2oUd3UOO
Q6Xc[
UO2gP!P!)�isolatedc�p:�[OR2P![OcP!h9hr.��
_interpreters�destroy�InterpreterNotFoundError��interpids�r�ensure_destroyed�WIncompatibleExtensionModuleRestrictionsTests.run_with_own_gil.<locals>.ensure_destroyed��.���
��%�%�h�/�� �9�9�
��
����5�5�5r7�r��create�
addCleanup�exec�typer r7r2�r�scriptr��excsnapr�s&&  @r�run_with_own_gil�=IncompatibleExtensionModuleRestrictionsTests.run_with_own_gil�sj��� �'�'�
�3��	�
	
���(�)��$�$�X�v�6�����|�|�$�$�
�5�!�'�+�+�.�.�6�rc�`�[OQ2nU1QkoUOU2[ORU2oUd3UOO
Q6Xc[
UO2gP!P!)�legacyc�p:�[OR2P![OcP!h9hr.r�r�s�rr��ZIncompatibleExtensionModuleRestrictionsTests.run_with_shared_gil.<locals>.ensure_destroyed�r�r�r7r�r�s&&  @r�run_with_shared_gil�@IncompatibleExtensionModuleRestrictionsTests.run_with_shared_gil�sj��� �'�'��1��	�
	
���(�)��$�$�X�v�6�����|�|�$�$�
�5�!�'�+�+�.�.�6�rz%test requires _testsinglephase modulec	�x�[OQ2oUOQ29^tt^2UOU2PPP2UOQ29^tt^2UO	U2PPP2[OQ2oUOQ29^tt^2UO[29^tt^2UOU2PPP2PPP2UOQ29^tt^2UO[29^tt^2UO	U2PPP2PPP2P!)%fhCK9h)%fhK�9h)%fhK�9h)%fhK�9h)%fhKg9h)%fhP!9h)z�
            from importlib.util import _incompatible_extension_module_restrictions
            with _incompatible_extension_module_restrictions(disable_check=True):
                import _testsinglephase
            �check disabled, shared GIL�#check disabled, per-interpreter GILz�
            from importlib.util import _incompatible_extension_module_restrictions
            with _incompatible_extension_module_restrictions(disable_check=False):
                import _testsinglephase
            �check enabled, shared GIL�"check enabled, per-interpreter GIL)�textwrap�dedentr{r�r�r6r7�rr�s& r�test_single_phase_init_module�JIncompatibleExtensionModuleRestrictionsTests.test_single_phase_init_module�s*��
���"���
�\�\�6�
7�
7��$�$�V�,�8�
�\�\�?�
@�
@��!�!�&�)�A����&
���
�\�\�5�
6�
6��"�"�;�/�/��(�(��0�0�7��\�\�>�
?�
?��"�"�;�/�/��%�%�f�-�0�@�
?�8�
7�
7��
@�
@��0�/��7�
6��0�/��@�
?�
?�s��E�$E�-F�E/	�F�F(�$F	�6F(�E	�E	�E,	�%E,	�/E?
�8E?
�:F�F	�F	�F%
�F%
� F(�(F9	�1F9	z$test requires _testmultiphase modulez/gh-117649: not supported in free-threaded buildc	��[O%cQoLQo[OQUQ[O
8QUQ02oU[OQ2*oUO
Q29^tt^2UOU2PPP2UO
Q29^tt^2UOU2PPP2U[OQ	2*oUO
Q
29^tt^2UOU2PPP2UO
Q29^tt^2UO[29^tt^2UOU2PPP2PPP2P!)%fhK�9h)%fhK�9h)%fhK�9h)%fhKS9h)%fhP!9h)�AppleFrameworkLoader�ExtensionFileLoaderzw
            from importlib.util import spec_from_loader, module_from_spec
            from importlib.machinery import zD

            name = '_test_shared_gil_only'
            filename = z
            loader = zP(name, filename)
            spec = spec_from_loader(name, loader)

            a

            from importlib.util import _incompatible_extension_module_restrictions
            with _incompatible_extension_module_restrictions(disable_check=True):
                module = module_from_spec(spec)
                loader.exec_module(module)
            r�r�a
            from importlib.util import _incompatible_extension_module_restrictions
            with _incompatible_extension_module_restrictions(disable_check=False):
                module = module_from_spec(spec)
                loader.exec_module(module)
            r�r�)r�is_apple_mobiler�r��_testmultiphasersr{r�r�r6r7)rrb�	prescriptr�s&   r�'test_incomplete_multi_phase_init_module�TIncompatibleExtensionModuleRestrictionsTests.test_incomplete_multi_phase_init_module�sk��
�"�"�"�+�F�*�F��O�O�)-�-3�H�5�(�0�0�3�4��X�
�
	%�	�	��X�_�_�.�����\�\�6�
7�
7��$�$�V�,�8�
�\�\�?�
@�
@��!�!�&�)�A��X�_�_�.�����\�\�5�
6�
6��$�$�V�,�7�
�\�\�>�
?�
?��"�"�;�/�/��%�%�f�-�0�@�
?�8�
7��
@�
@��7�
6��0�/��@�
?�
?�sf�E:�5F
�F �8G�F3	�(G�:F
	�F
	�
F	�F	� F0	�)F0	�3G
�<G
�>G�G	�G	c��[OQ2oUOQ29^tt^2UOU2PPP2UOQ29^tt^2UO	U2PPP2[OQ2oUOQ29^tt^2UOU2PPP2UOQ29^tt^2UO	U2PPP2P!)%fhK�9h)%fhK�9h)%fhKk9h)%fhP!9h)z�
            from importlib.util import _incompatible_extension_module_restrictions
            with _incompatible_extension_module_restrictions(disable_check=True):
                import _testmultiphase
            r�r�z�
            from importlib.util import _incompatible_extension_module_restrictions
            with _incompatible_extension_module_restrictions(disable_check=False):
                import _testmultiphase
            r�r�)r�r�r{r�r�r�s& r�%test_complete_multi_phase_init_module�RIncompatibleExtensionModuleRestrictionsTests.test_complete_multi_phase_init_modules������"���
�\�\�6�
7�
7��$�$�V�,�8�
�\�\�?�
@�
@��!�!�&�)�A����&
���
�\�\�5�
6�
6��$�$�V�,�7�
�\�\�>�
?�
?��!�!�&�)�@�
?�8�
7��
@�
@��7�
6��
?�
?�
?�sG�C<�$D�-D"� D5�<D	�D	�D	�D	�"D2	�+D2	�5E	�>E	r)r r!r"r#r�r�r�r��_testsinglephaser� expected_failure_if_gil_disabledr�r��requires_gil_enabledr�r�r$r%r&s@rr�r��s�����/�/��_�_�%��-�/V�W�
�-�-�/�.�0�X�.�.�_�_�_��,�.T�U��!�!�"S�T�(.�U�V�(.�T�_�_�_��,�.T�U�*�V�*rr�c�8`�\sQsQsnQQksQsQsQsUsP!)�PatchAtomicWrites�c�<�VmV mP
Um,UmP!�F)�truncate_at_length�never_complete�
seen_write�	_children)rr�r�s&&&r�__init__�PatchAtomicWrites.__init__s��"4��,�������rc�``�]PHo[OnUU1Qko[O[
QU2[O[QU2,RmROFDoUO2J	R!)rc�:�RO%cRO%cP!P	RmRVPRO2!r.)r�r�r�)�fd�data�oldwriters&&��r�write�*PatchAtomicWrites.__enter__.<locals>.write$s:�������4�#6�#6�#6��"�D�O��B�%=�d�&=�&=� >�?�?r�_ior�)�_pyiorr�rrr�children�	__enter__)rr�r��childr�sf   @rr��PatchAtomicWrites.__enter__sd�����8�8��	@�
���1�5�%�@����b�'�5�1�
��
��]�]�E��O�O��#��rc�T�UOFDoUOVU2J	P!r.)r��__exit__)r�exc_type�exc_val�exc_tbr�s&&&& rr��PatchAtomicWrites.__exit__4s���]�]�E��N�N�8�f�5�#r)r�r�r�r�r�r�)	r r!r"r#r�r�r�r$r%r&s@rr�r�s������,6�6rr�c�.`�\sQsQsnQsQsQsUsP!)�	MiscTests�9c��]doU]*o[UQ59^tt^2oQU*o[O[OU2PPP2UOWO2UO[O[OO2OU2[O[OO2P!)%fhK�9h)�d)r��x)
r�r�
_write_atomicr�TESTFN�
assertTruer�rr�statr�st_size�unlink)rr��length�cm�contents&    r�+test_atomic_write_retries_incomplete_writes�5MiscTests.test_atomic_write_retries_incomplete_writes;s��� ��#�a�'��
�2D�
E�
E���V�m�G��-�-�i�.>�.>��H�	F�
	
����
�
�&��������!2�!2�!9�!9�:�B�B�F�K�
�	�	�'�#�#�*�*�+�F�
E�s�/C+�+C;	�4C;	c	�P�]do[UP	Q59^tt^2oUO[29^tt^2QU]**o[O[
OU2PPP2PPP2UOWO2UO[29^tt^2[O[O
O2PPP2P!)%fhK�9h)%fhK�9h)%fhP!9h)r)r�r�r)r�r6�OSErrorrrrrrr�rr	r)rr�r
rs&   r�.test_atomic_write_errors_if_unable_to_complete�8MiscTests.test_atomic_write_errors_if_unable_to_completeIs��� ��
�#5�d�
�
�����g�&�&��0�1�4�5�G��-�-�i�.>�.>��H�
'�
�	
����
�
�&�
�
�
�w�
'�
'��G�G�G�%�%�,�,�-�(�
'�
'�&��
�
��(�
'�
'�s@�D�6C.	�-D�5/D�.C>
�7C>
�9D�D	�
D	�D%	�D%	r)r r!r"r#rrr$r%r&s@rrr9s����,�.�.rr�__main__)6�test.test_importlibr�import_importlibrDr�r4�importlib_util�importlib.utilrrrrKr6r�r3r�test.supportrr�rFr��
unittest.mockr?r�r7r�r�r�r�	test_both�Frozen_DecodeSourceBytesTests�Source_DecodeSourceBytesTestsr)�Frozen_ModuleFromSpecTests�Source_ModuleFromSpecTestsrw�Frozen_ResolveNameTests�Source_ResolveNameTestsr��Frozen_FindSpecTests�Source_FindSpecTestsr��Frozen_MagicNumberTests�Source_MagicNumberTestsr��Frozen_PEP3147Tests�Source_PEP3147Tests�TestCaser�r�r�rr �mainrrr�<module>r+sG��$�
���O�,�����[�)���!�!�"7�8�	��&�&�'7�8���)�	��
�
��"������������
@�@�.
�^�^�*��@����?7�?7�H	�N�N�&�C�9�&�(����
6�6�F
�^�^�$�>�:����@/�@/�J
�^�^�M��>�#,�.����
=�=�
�^�^�$�>�:����fH�fH�V	
�^�^�L�~�6����&=�x�(�(�&=�R
����$�&�(B�C�w*�8�3D�3D�w*�D�w*�t6�6�D .��!�!� .�F�z���M�M�O���I���������O������M��sH�G �G0�H� G-�&G-�,G-�0G=�6G=�<G=�H
�H
�H


Youez - 2016 - github.com/yon3zu
LinuXploit