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.10/test/test_json/__pycache__/test_speedups.cpython-310.pyc
o

�i
�@sNddlmZGdd�d�ZGdd�de�ZGdd�de�ZGdd	�d	e�Zd
S)�)�CTestc@seZdZdd�ZdS)�BadBoolcC�dddS�N�r���selfrr�9/usr/local/lib/python3.10/test/test_json/test_speedups.py�__bool__�zBadBool.__bool__N)�__name__�
__module__�__qualname__rrrrr
rsrc@�eZdZdd�Zdd�ZdS)�TestSpeedupscC�0|�|jjjjd�|�|jjj|jjj�dS�NZ_json)�assertEqual�json�decoderZ
scanstringr�assertIsZc_scanstringrrrr
�test_scanstring
szTestSpeedups.test_scanstringcCrr)rr�encoderZencode_basestring_asciirrZc_encode_basestring_asciirrrr
�test_encode_basestring_asciis��z)TestSpeedups.test_encode_basestring_asciiN)r
rrrrrrrr
r	src@r)�
TestDecodecCs|�t|jjjd�dS)Nr)�assertRaises�AttributeErrorr�scannerZc_make_scannerrrrr
�test_make_scannerszTestDecode.test_make_scannercs,�fdd�}��t|d���t|d�dS)Ncs�jjjt�d��|�dS)N)�strict)rrZJSONDecoderr�decode)�valuerrr
�testsz+TestDecode.test_bad_bool_args.<locals>.testz""z{}�r�ZeroDivisionError�r	r#rrr
�test_bad_bool_argsszTestDecode.test_bad_bool_argsN)r
rrrr'rrrr
rsrc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�
TestEncodecCs|�t|jjjddd�dS)N)TFs�}=NL�y�R���'J}��u)r�	TypeErrorrr�c_make_encoderrrrr
�test_make_encoder!s
�zTestEncode.test_make_encodercCs�dd�}|jj�ddd�|dddddd�	}|�t��
|dd	�Wd�n1s*wY|�t��|dd
id	�Wd�n1sFwYdd�}|jj�dd
d�|dddddd�	}|�t��|dd	�Wd�dS1svwYdS)NcWsdS�Nr��argsrrr
�bad_encoder1,sz5TestEncode.test_bad_str_encoder.<locals>.bad_encoder1cS�t|�Sr,��str��objrrr
�<lambda>.�z1TestEncode.test_bad_str_encoder.<locals>.<lambda>�: �, FZspam��*cWrrrr-rrr
�bad_encoder26rz5TestEncode.test_bad_str_encoder.<locals>.bad_encoder2cSr0r,r1r3rrr
r58r6)rrr*rr)r%)r	r/�encr;rrr
�test_bad_str_encoder)s&����"�zTestEncode.test_bad_str_encodercCsP|�td��|jj�ddddddddd�	Wd�dS1s!wYdS)Nz9make_encoder\(\) argument 1 must be dict or None, not intrr7r8F)ZassertRaisesRegexr)rrr*rrrr
�$test_bad_markers_argument_to_encoder>s��"�z/TestEncode.test_bad_markers_argument_to_encodercsV�fdd�}��t|d���t|d���t|d���t|d���t|d�dS)Ncs(�jjjdi|t�i���ddi�dS)N�arr)rr�JSONEncoderr�encode)�namerrr
r#Hs(z+TestEncode.test_bad_bool_args.<locals>.testZskipkeysZensure_asciiZcheck_circularZ	allow_nan�	sort_keysr$r&rrr
r'GszTestEncode.test_bad_bool_argscCsL|�t��|jjjdd��ddd��Wd�dS1swYdS)NT)rCrr?)r?r)rr)rrr@rArrrr
�test_unsortable_keysPs"�zTestEncode.test_unsortable_keysN)r
rrr+r=r>r'rDrrrr
r( s		r(N)Ztest.test_jsonrrrrr(rrrr
�<module>s