Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/test/test_json/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/test_json/__pycache__/test_speedups.cpython-35.opt-1.pyc



��YfX�@siddlmZGdd�d�ZGdd�de�ZGdd�de�ZGdd	�d	e�Zd
S)�)�CTestc@seZdZdd�ZdS)�BadBoolcCsdddS)N�r�)�selfrr�A/opt/alt/python35/lib64/python3.5/test/test_json/test_speedups.py�__bool__szBadBool.__bool__N)�__name__�
__module__�__qualname__rrrrrrsrc@s(eZdZdd�Zdd�ZdS)�TestSpeedupscCsB|j|jjjjd�|j|jjj|jjj�dS)N�_json)�assertEqual�json�decoderZ
scanstringr
�assertIsZc_scanstring)rrrr�test_scanstring
szTestSpeedups.test_scanstringcCsB|j|jjjjd�|j|jjj|jjj�dS)Nr
)rr�encoderZencode_basestring_asciir
rZc_encode_basestring_ascii)rrrr�test_encode_basestring_asciisz)TestSpeedups.test_encode_basestring_asciiN)r	r
rrrrrrrr	src@s(eZdZdd�Zdd�ZdS)�
TestDecodecCs |jt|jjjd�dS)Nr)�assertRaises�AttributeErrorr�scannerZc_make_scanner)rrrr�test_make_scannerszTestDecode.test_make_scannercs<�fdd�}�jt|d��jt|d�dS)Ncs&�jjjdt��j|�dS)N�strict)rrZJSONDecoderr�decode)�value)rrr�testsz+TestDecode.test_bad_bool_args.<locals>.testz""z{})r�ZeroDivisionError)rrr)rr�test_bad_bool_argsszTestDecode.test_bad_bool_argsN)r	r
rrrrrrrrsrc@s4eZdZdd�Zdd�Zdd�ZdS)�
TestEncodecCs&|jt|jjjddd�dS)NTFs�}=NL�y�R���'J}��u)TF)r�	TypeErrorrrZc_make_encoder)rrrr�test_make_encoder!szTestEncode.test_make_encodercsu�fdd�}�jt|d��jt|d��jt|d��jt|d��jt|d�dS)Ncs/�jjj|t�i�jddi�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CsF|jt��0|jjjdd�jddddi�WdQRXdS)Nr'Tr#r)rr!rrr$r%)rrrr�test_unsortable_keys0szTestEncode.test_unsortable_keysN)r	r
rr"rr(rrrrr  s	r N)Ztest.test_jsonrrrrr rrrr�<module>s