403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.64
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:/Python313/Lib/test/test_json/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/test_json/__pycache__/test_tool.cpython-313.opt-1.pyc
�

��id���SSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJ	r	 SSK
Jr \R"5"SS\R55rg)�N)�support)�	os_helper)�assert_python_okc�R�\rSrSrSr\R"S5r\R"S5r\R"S5r	\R"S5r
SrSS	jrS
r
SrSrS
rSrSrSrSrSrSrSrSrSr\R6"\R:S:HS5S5rSrg)�TestTool�
z�

        [["blorpie"],[ "whoops" ] , [
                                 ],	"d-shtaeou",
"d-nthiouh",
        "i-vhbjkhnth", {"nifty":87}, {"morefield" :	false,"field"
            :"yes"}  ]
           a.    [
        [
            "blorpie"
        ],
        [
            "whoops"
        ],
        [],
        "d-shtaeou",
        "d-nthiouh",
        "i-vhbjkhnth",
        {
            "nifty": 87
        },
        {
            "field": "yes",
            "morefield": false
        }
    ]
    a.    [
        [
            "blorpie"
        ],
        [
            "whoops"
        ],
        [],
        "d-shtaeou",
        "d-nthiouh",
        "i-vhbjkhnth",
        {
            "nifty": 87
        },
        {
            "morefield": false,
            "field": "yes"
        }
    ]
    zr    {"ingredients":["frog", "water", "chocolate", "glucose"]}
    {"ingredients":["chocolate","steel bolts"]}
    z�    {
        "ingredients": [
            "frog",
            "water",
            "chocolate",
            "glucose"
        ]
    }
    {
        "ingredients": [
            "chocolate",
            "steel bolts"
        ]
    }
    c���[RSS4n[R"XRSSSS9nURURUR5 URURS5 g)N�-m�	json.toolT��input�capture_output�text�check�)	�sys�
executable�
subprocess�run�data�assertEqual�stdout�expect�stderr��self�args�processs   �-C:\Python313\\Lib\test\test_json\test_tool.py�test_stdin_stdout�TestTool.test_stdin_stdoutYsX���~�~�t�[�0���.�.��Y�Y�t�RV�^b�c�����������5��������,�Nc��[Rn[USSS9nUR[R
U5 UR
U=(d UR5 SSS5 U$!,(df   U$=f)N�w�utf-8��encoding)r�TESTFN�open�
addCleanup�os�remove�writer)rr�infile�fps    r�_create_infile�TestTool._create_infile_s^���!�!��
�&�#��
0�B��O�O�B�I�I�v�.��H�H�T�&�T�Y�Y�'�1��
�1�
0��
�s�AA+�+
A:c��UR5n[SSU5up#nURUS5 URUR5URR5R55 URUS5 g)Nr
rrr")r0rr�
splitlinesr�encode�rr.�rc�out�errs     r�test_infile_stdout�TestTool.test_infile_stdoutfso���$�$�&��'��k�6�B��������Q��������)�4�;�;�+=�+=�+?�+J�+J�+L�M�����c�"r"c�6�Sn[R"S5R5nURU5n[	SSU5upEnURUS5 URUR
5UR
55 URUS5 g)Nu{"msg": "こんにちは"}zP        {
            "msg": "\u3053\u3093\u306b\u3061\u306f"
        }
        r
rrr")�textwrap�dedentr4r0rrr3)rrrr.r6r7r8s       r�test_non_ascii_infile�TestTool.test_non_ascii_infilems���:�����"�
��V�X�		��$�$�T�*��'��k�6�B��������Q��������)�6�+<�+<�+>�?�����c�"r"c��UR5n[RS-n[SSX5up4nUR	[
RU5 [USSS9nURUR5UR5 SSS5 URUS5 URUS5 URUS5 g!,(df   NE=f)	N�.outr
r�rr%r&rr")r0rr(rr*r+r,r)r�readr)rr.�outfiler6r7r8r/s       r�test_infile_outfile�TestTool.test_infile_outfile|s����$�$�&���"�"�V�+��'��k�6�K��������	�	�7�+�
�'�3��
1�R����R�W�W�Y����4�2�����Q������c�"�����c�"�	2�
1�s�+C	�	
Cc�N�UR5n[SSX5up#n[USSS9nURUR	5UR
5 SSS5 URUS5 URUS5 URUS5 g!,(df   NE=f)Nr
rrBr%r&rr")r0rr)rrCr)rr.r6r7r8r/s      r�test_writing_in_place�TestTool.test_writing_in_place�s����$�$�&��'��k�6�J����
�&�#��
0�B����R�W�W�Y����4�1�����Q������c�"�����c�"�	1�
0�s�+B�
B$c���[RSSS4n[R"XRSSSS9nURURUR5 URURS5 g)Nr
rz--json-linesTrr)	rrrr�
jsonlines_rawrr�jsonlines_expectrrs   r�test_jsonlines�TestTool.test_jsonlines�s_���~�~�t�[�.�@���.�.��-?�-?�PT�[_�gk�l���������)>�)>�?��������,r"c��[SSS5upnURUS5 URURS55 URUS5 g)Nr
rz-hrsusage: r")rr�
assertTrue�
startswith)rr6r7r8s    r�test_help_flag�TestTool.test_help_flag�sI��'��k�4�@��������Q��������z�2�3�����c�"r"c��UR5n[SSSU5up#nURUS5 URUR5URR5R55 URUS5 g)Nr
rz--sort-keysrr")r0rrr3�expect_without_sort_keysr4r5s     r�test_sort_keys_flag�TestTool.test_sort_keys_flag�sw���$�$�&��'��k�=�&�Q��������Q��������)��6�6�=�=�?�J�J�L�	N�����c�"r"c��Sn[R"S5n[RSSSS4n[R
"X1SSSS9nUR
URU5 UR
URS	5 g)
N�[1, 2]z5        [
          1,
          2
        ]
        r
rz--indent�2Trr)	r<r=rrrrrrr�r�input_rrrs     r�test_indent�TestTool.test_indent�sm�������"�
���~�~�t�[�*�c�A���.�.��D�t�[_�`���������0��������,r"c���SnSn[RSSS4n[R"X1SSSS9nUR	UR
U5 UR	URS5 g)	Nz[1,
2]z[1, 2]
r
rz--no-indentTrr�rrrrrrrr[s     r�test_no_indent�TestTool.test_no_indent�s[�������~�~�t�[�-�?���.�.��D�t�[_�`���������0��������,r"c���SnSn[RSSS4n[R"X1SSSS9nUR	UR
U5 UR	URS5 g)	NrYz[
	1,
	2
]
r
rz--tabTrrr`r[s     r�test_tab�TestTool.test_tab�s[����$���~�~�t�[�'�9���.�.��D�t�[_�`���������0��������,r"c���SnSn[RSSS4n[R"X1SSSS9nUR	UR
U5 UR	URS5 g)	Nz	[ 1 ,
 2]z[1,2]
r
rz	--compactTrrr`r[s     r�test_compact�TestTool.test_compact�s[�������~�~�t�[�+�=���.�.��D�t�[_�`���������0��������,r"c�\�URS5n[RS-nUR[R
U5 [
SSSX5 [US5nUR5R5nSSS5 /SQnURWU5 g!,(df   N%=f)N�{"key":"💩"}rAr
rz--no-ensure-ascii�rb)�{s    "key": "💩"�}�r0rr(r*r+r,rr)rCr3r�rr.rD�f�lines�expecteds      r�test_no_ensure_ascii_flag�"TestTool.test_no_ensure_ascii_flag�s����$�$�%5�6���"�"�V�+������	�	�7�+���{�,?��Q�
�'�4�
 �A��F�F�H�'�'�)�E�!�B�������)�	!�
 �s�B�
B+c�Z�URS5n[RS-nUR[R
U5 [
SSX5 [US5nUR5R5nSSS5 /SQnURWU5 g!,(df   N%=f)NrjrAr
rrk)rls    "key": "\ud83d\udca9"rmrnros      r�test_ensure_ascii_default�"TestTool.test_ensure_ascii_default�s����$�$�%5�6���"�"�V�+������	�	�7�+���{�F�<�
�'�4�
 �A��F�F�H�'�'�)�E�!�?�������)�	!�
 �s�B�
B*�win32z-The test is failed with ValueError on Windowsc�8�[RSS/n[R"U[R[RS9nUR
R
5 URS5 URUR[R5 g)Nr
r)r�stdins"{}")rrr�Popen�PIPEr�close�communicater�
returncode�errno�EPIPE)r�cmd�procs   r�test_broken_pipe_error�TestTool.test_broken_pipe_error�sj���~�~�t�[�1������'1���&0�o�o�7��	
����������!�������%�+�+�6r"�)N) �__name__�
__module__�__qualname__�__firstlineno__rr<r=rUrrKrLr r0r9r>rErHrMrRrVr]rardrgrsrv�unittest�skipIfr�platformr��__static_attributes__r�r"rrr
s����D� (���0� 	��,�_�_��	�F�,�O�O�%�	�M�
 ���(�	��"-��#�
#�	#�#�-�#�#�-�-�-�-�	*�	*��_�_�S�\�\�G�+�-\�]�7�^�7r"r)r�r+rr<r�r�testr�test.supportr�test.support.script_helperr�requires_subprocess�TestCaserr�r"r�<module>r�sM���	�
�����"�7�	����Z7�x� � �Z7��Z7r"

Youez - 2016 - github.com/yon3zu
LinuXploit