403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.74
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
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_errors.cpython-312.pyc
�

"Ie!��N�ddlZddlZddlmZddlZddlmZmZGd�de�Z	y)�N)�TestCase)�	text_type�bc�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�
TestErrorsc���ddddd�g}	tj|�|jd�|j
t�d�y#t$rt	j
�d}Y�>wxYw)	N�A)��g@zD tuple)�ar�c)�d�Expected TypeError�z5keys must be str, int, float, bool or None, not tuple��json�dumps�fail�	TypeError�sys�exc_info�assertEqual�str)�self�data�errs   �>/usr/lib/python3/dist-packages/simplejson/tests/test_errors.py�test_string_keys_errorz!TestErrors.test_string_keys_errorsl����S�)�D�E��	,��J�J�t��
�I�I�*�+�����S��G�	I��	�	$��,�,�.��#�C�	$�s�A� A/�.A/c���	tjt�|jd�|j
t�d�y#t$rt	j
�d}Y�>wxYw)Nrrz.Object of type module is not JSON serializabler�rrs  r�test_not_serializablez TestErrors.test_not_serializables[��	,��J�J�t��
�I�I�*�+�����S��@�	B��	�	$��,�,�.��#�C�	$�s�A� A+�*A+c��d}	tjd�|jd�|j
|jd�|j
|jd�|j
|jd�|j
|jd�y#tj$rt	j
�d}Y��wxYw)N�{}
a
b�Expected JSONDecodeErrorrr
�)r�loadsr�JSONDecodeErrorrrr�lineno�colno�	endlineno�endcolnor s  r�test_decode_errorzTestErrors.test_decode_errors�����	2��J�J�z�"�
�I�I�0�1�������Q�'�������A�&��������*�������q�)���#�#�	$��,�,�.��#�C�	$�s�B�*C�Cc�T�d}ttfD]g}	tj|d��|j	d�|j|jd�|j|jd��iy#tj
$rt
j�d}Y�gwxYw)Nz
{"asdf": "r$r�
)rrrr&rr'rrrr(r))rr�ts   r�test_scan_errorzTestErrors.test_scan_error*s������Q��	,�A�
6��
�
�1�\�?�+��	�	�4�5����S�Z�Z��+����S�Y�Y��+�	,���'�'�
(��l�l�n�Q�'��
(�s�A:�:*B'�&B'c�:�d}	tjd�|jd�t
j|�}t
j|�}|j|j|j�|j|j|j�|j|j|j�|j|j|j�y#tj$rt	j
�d}Y��wxYw)Nr#r$r)
rr&rr'rr�picklerr�msg�doc�pos�end)rr�s�es    r�test_error_is_pickablez!TestErrors.test_error_is_pickable6s�����	2��J�J�z�"�
�I�I�0�1��L�L�����L�L��O��������!�%�%�(�������!�%�%�(�������!�%�%�(�������!�%�%�(���#�#�	$��,�,�.��#�C�	$�s�C-�-*D�DN)�__name__�
__module__�__qualname__rr!r,r0r9��rrrs��	I�B�*�
,�)r>r)
rr2�unittestr�
simplejsonr�simplejson.compatrrrr=r>r�<module>rBs�����*�=)��=)r>

Youez - 2016 - github.com/yon3zu
LinuXploit