+
    Big)                     2   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	H
t
Ht ^ RIHt ^ RIHt ]P                   ! 4        ! R R]P"                  4      4       t]P                   ! 4        ! R R	]4      4       t]R
8X  d   ]P*                  ! 4        R# R# )    N)support)force_colorizedforce_not_colorized	os_helper)assert_python_ok)	get_themec                     a  ] tR t^t o RtRt]P                  ! R4      t]P                  ! R4      t	]P                  ! R4      t
]P                  ! R4      t]R 4       tRR	 ltR
 tR tR tR t]R 4       tR tR t]R 4       t]R 4       t]R 4       t]R 4       tR tR t]]P:                  ! ]P>                  R8H  R4      R 4       4       t ]!R 4       t"Rt#V t$R# )TestMainz

        [["blorpie"],[ "whoops" ] , [
                                 ],	"d-shtaeou","d-nthiouh",
        "i-vhbjkhnth", {"nifty":87}, {"morefield" :	false,"field"
            :"yes"}  ]
           jsona.      [
        [
            "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                   \         P                  R V P                  3p\        P                  ! WP
                  RRRR7      pV P                  VP                  V P                  4       V P                  VP                  R4       R# )-mTinputcapture_outputtextcheck N)
sys
executablemodule
subprocessrundataassertEqualstdoutexpectstderrselfargsprocesss   &  //usr/lib/python3.14/test/test_json/test_tool.pytest_stdin_stdoutTestMain.test_stdin_stdout\   s\    ~~tT[[0..YYtRV^bc5,    Nc                   \         P                  p\        VR RR7      ;_uu_ 4       pV P                  \        P
                  V4       TP                  T;'       g    V P                  4       RRR4       V#   + '       g   i     T# ; i)wutf-8encodingN)r   TESTFNopen
addCleanuposremovewriter   )r   r   infilefps   &&  r"   _create_infileTestMain._create_infilec   sd    !!&#00BOOBIIv.HHT&&TYY' 1  10 s   AA77B	c                2   V P                  4       p\        R V P                  VRR7      w  r#pV P                  V^ 4       V P                  VP	                  4       V P
                  P                  4       P	                  4       4       V P                  VR4       R# )r   0PYTHON_COLORSr%   N)r3   r   r   r   
splitlinesr   encoder   r1   rcouterrs   &    r"   test_infile_stdoutTestMain.test_infile_stdoutj   sx    $$&'dkk669;Q)4;;+=+=+?+J+J+LMc"r%   c                P   R p\         P                  ! R4      P                  4       pV P                  V4      p\	        RV P
                  VRR7      w  rEpV P                  V^ 4       V P                  VP                  4       VP                  4       4       V P                  VR4       R# )u   {"msg": "こんにちは"}zP        {
            "msg": "\u3053\u3093\u306b\u3061\u306f"
        }
        r   r6   r7   r%   N)textwrapdedentr:   r3   r   r   r   r9   )r   r   r   r1   r<   r=   r>   s   &      r"   test_non_ascii_infileTestMain.test_non_ascii_infiler   s    : "  VX	 	 $$T*'dkk669; 	Q)6+<+<+>?c"r%   c                   V P                  4       p\        P                  R ,           p\        RV P                  WRR7      w  r4pV P                  \        P                  V4       \        VRRR7      ;_uu_ 4       pV P                  VP                  4       V P                  4       RRR4       V P                  V^ 4       V P                  VR4       V P                  VR4       R#   + '       g   i     LH; i)	.outr   r6   r7   rr(   r)   Nr%   )r3   r   r+   r   r   r-   r.   r/   r,   r   readr   )r   r1   outfiler<   r=   r>   r2   s   &      r"   test_infile_outfileTestMain.test_infile_outfile   s    $$&""V+'dkk669;		7+'311RRWWY4 2Qc"c"	 21s   :+C%%C5	c                   V P                  4       p\        R V P                  WRR7      w  r#p\        VRRR7      ;_uu_ 4       pV P	                  VP                  4       V P                  4       RRR4       V P	                  V^ 4       V P	                  VR4       V P	                  VR4       R#   + '       g   i     LH; i)r   r6   r7   rH   r(   r)   Nr%   )r3   r   r   r,   r   rI   r   )r   r1   r<   r=   r>   r2   s   &     r"   test_writing_in_placeTestMain.test_writing_in_place   s    $$&'dkk669;&#00BRWWY4 1Qc"c"	 10s   +B..B>	c                   \         P                  R V P                  R3p\        P                  ! WP
                  RRRR7      pV P                  VP                  V P                  4       V P                  VP                  R4       R# )r   z--json-linesTr   r   N)
r   r   r   r   r   jsonlines_rawr   r   jsonlines_expectr   r   s   &  r"   test_jsonlinesTestMain.test_jsonlines   sc    ~~tT[[.@..-?-?PT[_gkl)>)>?,r%   c                    \        R V P                  RRR7      w  rpV P                  V^ 4       V P                  VR4       V P                  VR4       R# )r   z-hr6   r7   s   usage: r%   N)r   r   r   assertStartsWith)r   r<   r=   r>   s   &   r"   test_help_flagTestMain.test_help_flag   sM    'dkk469;Qc:.c"r%   c                4   V P                  4       p\        R V P                  RVRR7      w  r#pV P                  V^ 4       V P                  VP	                  4       V P
                  P                  4       P	                  4       4       V P                  VR4       R# )r   z--sort-keysr6   r7   r%   N)r3   r   r   r   r9   expect_without_sort_keysr:   r;   s   &    r"   test_sort_keys_flagTestMain.test_sort_keys_flag   s    $$&'dkk=&69;Q)66==?JJL	Nc"r%   c                   R p\         P                  ! R4      p\        P                  RV P                  RR3p\
        P                  ! W1RRRR7      pV P                  VP                  V4       V P                  VP                  R4       R# )	[1, 2]z5        [
          1,
          2
        ]
        r   z--indent2Tr   r   N)
rB   rC   r   r   r   r   r   r   r   r   r   input_r   r    r!   s   &    r"   test_indentTestMain.test_indent   sq     "  ~~tT[[*cA..Dt[_`0,r%   c                    R pRp\         P                  RV P                  R3p\        P                  ! W1RRRR7      pV P                  VP                  V4       V P                  VP                  R4       R# )z[1,
2]z[1, 2]
r   z--no-indentTr   r   Nr   r   r   r   r   r   r   r   r`   s   &    r"   test_no_indentTestMain.test_no_indent   s_    ~~tT[[-?..Dt[_`0,r%   c                    R pRp\         P                  RV P                  R3p\        P                  ! W1RRRR7      pV P                  VP                  V4       V P                  VP                  R4       R# )r^   z[
	1,
	2
]
r   z--tabTr   r   Nre   r`   s   &    r"   test_tabTestMain.test_tab   s_    $~~tT[['9..Dt[_`0,r%   c                    R pRp\         P                  RV P                  R3p\        P                  ! W1RRRR7      pV P                  VP                  V4       V P                  VP                  R4       R# )z	[ 1 ,
 2]z[1,2]
r   z	--compactTr   r   Nre   r`   s   &    r"   test_compactTestMain.test_compact   s_    ~~tT[[+=..Dt[_`0,r%   c           	        V P                  R 4      p\        P                  R,           pV P                  \        P
                  V4       \        RV P                  RVVRR7       \        VR4      ;_uu_ 4       pVP                  4       P                  4       pRRR4       . ROpV P                  XV4       R#   + '       g   i     L(; i)	   {"key":"💩"}rG   r   z--no-ensure-asciir6   r7   rbN)   {s       "key": "💩"   }r3   r   r+   r-   r.   r/   r   r   r,   rI   r9   r   r   r1   rJ   flinesexpecteds   &     r"   test_no_ensure_ascii_flag"TestMain.test_no_ensure_ascii_flag   s    $$%56""V+		7+t{{,? 	5'4  AFFH'')E ! B)	 ! s   8B77C	c                   V P                  R 4      p\        P                  R,           pV P                  \        P
                  V4       \        RV P                  WRR7       \        VR4      ;_uu_ 4       pVP                  4       P                  4       pRRR4       . ROpV P                  XV4       R#   + '       g   i     L(; i)ro   rG   r   r6   r7   rp   N)rq   s       "key": "\ud83d\udca9"rr   rs   rt   s   &     r"   test_ensure_ascii_default"TestMain.test_ensure_ascii_default   s    $$%56""V+		7+t{{F3O'4  AFFH'')E ! ?)	 ! s   6B55C	win32z-The test is failed with ValueError on Windowsc                T   \         P                  R V P                  .p\        P                  ! V\        P
                  \        P
                  R7      pVP                  P                  4        VP                  R4       V P                  VP                  \        P                  4       R# )r   )r   stdins   "{}"N)r   r   r   r   PopenPIPEr   closecommunicater   
returncodeerrnoEPIPE)r   cmdprocs   &  r"   test_broken_pipe_errorTestMain.test_broken_pipe_error   sp     ~~tT[[1'1&0oo7 	!%++6r%   c                   \         P                  pV P                  \        P                  V4       \        4       P                  pR pRpR+R,RVP                   RVP                   23RVP                   RVP                   23RVP                   RVP                   23RVP                   RVP                   23RVP                   RVP                   23RVP                   RVP                   23RVP                   RVP                   23R	VP                   R	VP                   23R
VP                   RVP                   23RVP                   RVP                   23RVP                   RVP                   23RV RVP                   RVP                   RVP                   RVP                   RV 23RV RVP                   RVP                   RVP                   RVP                   RV 23RRP                  . V NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NR NVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NRNVP                   NR!NV N4      33pV F  w  rgV P                  VR"7      ;_uu_ 4        \        VR#R$R%7      ;_uu_ 4       pVP                  V4       R&R&R&4       \!        R'V P"                  VR(R(R)7      w  rp	V
P%                  4       pVP'                  R*R4      pVP)                  4       pV P+                  W4       R&R&R&4       K  	  R&#   + '       g   i     L~; i  + '       g   i     K  ; i)-{}nulltruefalseNaNInfinityz	-Infinityz"foo"z" \"foo\" "u   "α"z"\u03b1"123z	-1.25e+23z
{"\\": ""}z
    z"\\"z: z""
z{"\\\\": ""}z"\\\\"zl{
    "foo": "bar",
    "baz": 1234,
    "qux": [true, false, null],
    "xyz": [NaN, -Infinity, Infinity]
}r   z"bar"z,
    z"baz"1234z"qux"z: [
        z
,
        z
    ],
    z"xyz"z
    ]
)r   r'   r(   r)   Nr   1)FORCE_COLOR
__isolatedz
){}r   )[]r   )r   r+   r-   r.   r/   r   syntaxkeywordresetnumberstring
definitionjoinsubTestr,   r0   r   r   decodereplacestripr   )r   r1   tobcbcasesra   rw   r2   _stdout_br   s   &           r"   test_colorsTestMain.test_colors   sH   !!		6*K 		{$qwwi01		{$qwwi015	23qxxjAGG9-.AHH:XaggY78QXXJiy9:
%y12zqwwi@Az177)45qxxjAGG9-.QXXJiy9: \\N&	AHH:Ry 9	
  \\N*QWWIRzAGG9 =	
 \\Ny "#$88*,123''; \\N  y !# $%88* -1 23	: \\N	 	 y	!		
 

 
 y
!	 
  	"	 
  y! \\N  y!	 

  ggY	 

  GG9%	 

  77)$ 	1.
` !&FF++&#88BHHV$ 9!1$++v33"Q "*5  2 ,+ !&88 ,++s%   Q3P;A(Q;QQQ )N)%__name__
__module____qualname____firstlineno__r   r   rB   rC   rZ   r   rQ   rR   r   r#   r3   r?   rD   rK   rN   rS   rW   r[   rb   rf   ri   rl   rx   r{   unittestskipIfr   platformr   r   r   __static_attributes____classdictcell__)__classdict__s   @r"   r
   r
      sT    D F' 0  	, __  	F, OO % 	M
   ( 	" - -## 
## - -## - - - - - - - -
*	* __S\\G+-\]7 ^ 7 B3 B3r%   r
   c                       ] tR tRtRtRtR# )TestTooliA  z	json.toolr   N)r   r   r   r   r   r   r   r%   r"   r   r   A  s    Fr%   r   __main__)r   r.   r   rB   r   r   testr   test.supportr   r   r   test.support.script_helperr   	_colorizer   requires_subprocessTestCaser
   r   r   mainr   r%   r"   <module>r      s     	 
     H H 7  	n3x   n3 n3b	 	x   zMMO r%   