HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/test_json/__pycache__/test_speedups.cpython-37.opt-1.pyc
B

��g
�@sNddlmZGdd�d�ZGdd�de�ZGdd�de�ZGdd	�d	e�Zd
S)�)�CTestc@seZdZdd�ZdS)�BadBoolcCsdddS)N�r�)�selfrr�8/usr/local/lib/python3.7/test/test_json/test_speedups.py�__bool__szBadBool.__bool__N)�__name__�
__module__�__qualname__rrrrrrsrc@seZdZdd�Zdd�ZdS)�TestSpeedupscCs0|�|jjjjd�|�|jjj|jjj�dS)N�_json)�assertEqual�json�decoderZ
scanstringr
�assertIsZc_scanstring)rrrr�test_scanstring
szTestSpeedups.test_scanstringcCs0|�|jjjjd�|�|jjj|jjj�dS)Nr
)rr�encoderZencode_basestring_asciir
rZc_encode_basestring_ascii)rrrr�test_encode_basestring_asciisz)TestSpeedups.test_encode_basestring_asciiN)r	r
rrrrrrrr	src@seZdZdd�Zdd�ZdS)�
TestDecodecCs|�t|jjjd�dS)Nr)�assertRaises�AttributeErrorr�scannerZc_make_scanner)rrrr�test_make_scannerszTestDecode.test_make_scannercs,�fdd�}��t|d���t|d�dS)Ncs�jjjt�d��|�dS)N)�strict)rrZJSONDecoderr�decode)�value)rrr�testsz+TestDecode.test_bad_bool_args.<locals>.testz""z{})r�ZeroDivisionError)rrr)rr�test_bad_bool_argsszTestDecode.test_bad_bool_argsN)r	r
rrrrrrrrsrc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
TestEncodecCs|�t|jjjddd�dS)N)TFs�}=NL�y�R���'J}��u)r�	TypeErrorrr�c_make_encoder)rrrr�test_make_encoder!szTestEncode.test_make_encodercCs�dd�}|jj�ddd�|dddddd�	}|�t��|dd	�WdQRX|�t��|dd
id	�WdQRXdd�}|jj�dd
d�|dddddd�	}|�t��|dd	�WdQRXdS)NcWsdS)Nr)�argsrrr�bad_encoder1*sz5TestEncode.test_bad_str_encoder.<locals>.bad_encoder1cSst|�S)N)�str)�objrrr�<lambda>,�z1TestEncode.test_bad_str_encoder.<locals>.<lambda>z: z, FZspam��*cWsdddS)Nrrr)r$rrr�bad_encoder24sz5TestEncode.test_bad_str_encoder.<locals>.bad_encoder2cSst|�S)N)r&)r'rrrr(6r))rrr"rr!r)rr%�encr,rrr�test_bad_str_encoder's

zTestEncode.test_bad_str_encodercsV�fdd�}��t|d���t|d���t|d���t|d���t|d�dS)Ncs$�jjjf|t�i��ddi�dS)N�ar)rr�JSONEncoderr�encode)�name)rrrr=sz+TestEncode.test_bad_bool_args.<locals>.testZskipkeysZensure_asciiZcheck_circularZ	allow_nan�	sort_keys)rr)rrr)rrr<szTestEncode.test_bad_bool_argsc	Cs6|�t��"|jjjdd��ddd��WdQRXdS)NT)r3rr/)r/r)rr!rrr0r1)rrrr�test_unsortable_keysEszTestEncode.test_unsortable_keysN)r	r
rr#r.rr4rrrrr  s	r N)Ztest.test_jsonrrrrr rrrr�<module>s