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_recursion.cpython-311.pyc
�

$��c���v�ddlmZddlZGd�d��ZGd�dej��ZGd�de��ZdS)	�)�TestCaseNc��eZdZdS)�JSONTestObjectN)�__name__�
__module__�__qualname__���A/usr/lib/python3/dist-packages/simplejson/tests/test_recursion.pyrrs�������Dr
rc��eZdZdZd�ZdS)�RecursiveJSONEncoderFc�t�|tur|jrtgSdStj�|��S)Nr)r�recurse�json�JSONEncoder�default)�self�os  rrzRecursiveJSONEncoder.defaults=�������|�
(�&�'�'�'�'���'�'��*�*�*r
N)rrrrrr	r
rr
r
	s(�������G�+�+�+�+�+r
r
c� �eZdZd�Zd�Zd�ZdS)�
TestRecursionc��g}|�|��	tj|��|�d��n#t$rYnwxYwg}|g}|�|��	tj|��|�d��n#t$rYnwxYwg}||g}tj|��dS)Nz)didn't raise ValueError on list recursionz5didn't raise ValueError on alternating list recursion)�appendr�dumps�fail�
ValueError�r�x�ys   r�test_listrecursionz TestRecursion.test_listrecursions�����	�������	C��J�q�M�M�M�
�I�I�A�B�B�B�B���	�	�	��D�	����
��
�C��	�������	O��J�q�M�M�M�
�I�I�M�N�N�N�N���	�	�	��D�	����
��
��F���
�1�
�
�
�
�
s#�A�
A�A�.B�
B%�$B%c��i}||d<	tj|��|�d��n#t$rYnwxYwi}||d�}tj|��dS)N�testz)didn't raise ValueError on dict recursion)�a�b)rrrrrs   r�test_dictrecursionz TestRecursion.test_dictrecursion,s�������&�	�	C��J�q�M�M�M�
�I�I�A�B�B�B�B���	�	�	��D�	����
���!�����
�1�
�
�
�
�
s�3�
A�Ac��t��}|�|�t��d��d|_	|�t��|�d��dS#t$rYdSwxYw)Nz"JSONTestObject"Tz,didn't raise ValueError on default recursion)r
�assertEqual�encoderrrr)r�encs  r�test_defaultrecursionz#TestRecursion.test_defaultrecursion:s���"�$�$��������N�3�3�5G�H�H�H����	F��J�J�~�&�&�&�
�I�I�D�E�E�E�E�E���	�	�	��D�D�	���s�A6�6
B�BN)rrrrr$r)r	r
rrrsF���������.���	F�	F�	F�	F�	Fr
r)�unittestr�
simplejsonrrrr
rr	r
r�<module>r,s�������������	�	�	�	�	�	�	�	�+�+�+�+�+�4�+�+�+�+�/F�/F�/F�/F�/F�H�/F�/F�/F�/F�/Fr

Youez - 2016 - github.com/yon3zu
LinuXploit