403Webshell
Server IP : 54.37.205.81  /  Your IP : 216.73.216.76
Web Server : nginx/1.22.1
System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64
User : debian ( 1000)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/simplejson/tests/__pycache__/test_fail.cpython-311.pyc
�

$��c���P�ddlZddlmZddlZgd�Zddd�ZGd�de��ZdS)	�N)�TestCase):z<"A JSON payload should be an object or array, not a string."z["Unclosed array"z%{unquoted_key: "keys must be quoted"}z["extra comma",]z["double extra comma",,]z[   , "<-- missing value"]z["Comma after the close"],z["Extra close"]]z{"Extra comma": true,}z:{"Extra value after close": true} "misplaced quoted value"z{"Illegal expression": 1 + 2}z{"Illegal invocation": alert()}z+{"Numbers cannot have leading zeroes": 013}z{"Numbers cannot be hex": 0x14}z"["Illegal backslash escape: \x15"]z[\naked]z"["Illegal backslash escape: \017"]z2[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]z{"Missing colon" null}z{"Double colon":: null}z {"Comma instead of colon", null}z!["Colon instead of comma": false]z["Bad value", truth]z['single quote']z["	tab	character	in	string	"]z&["tab\   character\   in\  string\  "]z["line
break"]z["line\
break"]z[0e]z[0e+]z[0e+-1]z({"Comma instead if closing brace": true,z["mismatch"}z$["AZ control characters in string"]�{z{]z{"foo": "bar"]z
{"foo": "bar"�nul�nulx�-z-xz-ez-e0z	-Infinitez-Inf�Infinit�Infinite�NaM�NuN�falsy�fal�trug�tru�1e�1exz1e-z1e-xzwhy not have a string payload?z,spec doesn't specify any nesting limitations)��c� �eZdZd�Zd�Zd�ZdS)�TestFailc��tt��D]l\}}|dz}|tvrtj|���(	tj|��|�d||fz���X#tj$rY�iwxYwdS)Nrz$Expected failure for fail%d.json: %r)�	enumerate�JSONDOCS�SKIPS�json�loads�fail�JSONDecodeError)�self�idx�docs   �</usr/lib/python3/dist-packages/simplejson/tests/test_fail.py�
test_failureszTestFail.test_failuresms���!�(�+�+�
	O�
	O�H�C����'�C��e�|�|��
�3�����
O��
�3�����	�	�@�C��:�M�N�N�N�N���'�
�
�
���
����
	O�
	Os�A-�-A?�>A?c���dD]�}	tj|��|�d���-#tj$rmt	j��d}|�|jd��|�|jd��|�|j	d��Y��t$r7t	j��d}|�d|�d|����Y��wxYwdS)N)�[,]r$z Unexpected success parsing '[,]'r��Unexpected exception raised � )rrrr�sys�exc_info�assertEqual�pos�lineno�colno�	Exception)rr �es   r!�test_array_decoder_issue46z#TestFail.test_array_decoder_issue46zs��"�	>�	>�C�
>��
�3�����	�	�<�=�=�=�=���'�
-�
-�
-��L�N�N�1�%��� � ����*�*�*�� � ���1�-�-�-�� � ���!�,�,�,�,�,��
H�
H�
H��L�N�N�1�%���	�	�	����A�A�F�G�G�G�G�G�
H����	>�	>s�0�A9C+�+=C+�*C+c�*�gd�}|D�]
\}}}	tj|��|�d|�d����6#tj$r�t	j��d}|�|jdt|���||j�d|�d|����|�|j	|d|j	�d|�d|����Y��t$r8t	j��d}|�d	|�d
|����Y��wxYwdS)N))��Expecting valuer)�[zExpecting value or ']'r)z[42�Expecting ',' delimiter�)z[42,r3�)z["�Unterminated string starting atr)z["spamr8r)z["spam"r5�)z["spam",r3�)r�1Expecting property name enclosed in double quotesr)z{"r8r)z{"spamr8r)z{"spam"zExpecting ':' delimiterr9)z{"spam":r3r:)z
{"spam":42r5�
)z{"spam":42,r;�)�"r8r)z"spamr8r)z[,r3rzUnexpected success parsing '�'rz doesn't start with z for zpos z != r&r')rrrrr(r)r*�msg�lenr+r.)r�
test_cases�datar@rr/s      r!�test_truncated_inputzTestFail.test_truncated_input�s~��
�
�
�
�*)�	G�	G�N�D�#�s�
G��
�4� � � ��	�	�	�t�t�t�E�F�F�F�F���'�
@�
@�
@��L�N�N�1�%��� � ��E�)�3�s�8�8�)�$��9:�������T�T�J�L�L�L�� � ��E�3�3�-.�U�U�U�C�C�C���>�@�@�@�@�@��
H�
H�
H��L�N�N�1�%���	�	�	����A�A�F�G�G�G�G�G�
H����	G�	Gs�=�BD�=D�DN)�__name__�
__module__�__qualname__r"r0rD��r!rrlsI������O�O�O�>�>�>� &G�&G�&G�&G�&GrIr)r(�unittestr�
simplejsonrrrrrHrIr!�<module>rLs���
�
�
�
�����������^�^�^��B(�6�	�	��
DG�DG�DG�DG�DG�x�DG�DG�DG�DG�DGrI

Youez - 2016 - github.com/yon3zu
LinuXploit