+
    Bi                     *   ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHtHtH	t	H
t
 Rt]P                  ! R4      t]P                  t]P                  t]P                   t ! R R]4      t ! R R	]P&                  4      t]R
8X  d   ]P,                  ! 4        R# R# )    N)UserDict)import_helper)unlinkTESTFNTESTFN_ASCIITESTFN_UNDECODABLE	_testcapic                       ] tR t^tRtR# )DictSubclass N)__name__
__module____qualname____firstlineno____static_attributes__r       ./usr/lib/python3.14/test/test_capi/test_run.pyr   r      s    r   r   c                      a  ] tR t^t o R tR t]P                  ! ]R4      ]P                  ! ]
P                  R8H  R4      R 4       4       tRtV tR# )	CAPITestc           
        R  pRpV P                  V! R\        ^R7      4      4       V P                  V! R\        ^R7      / 4      4       V P                  V! R/ \        ^R7      4      4       V P                  V! R/ \        ^R7      4      4       V P                  \        VR/ 4       V P                  \        VR/ / 4       V P                  \
        VR\        ^R7      . 4       V P                  \
        VR\        ^R7      ^4       V P                  V! R\        ^R7      4      4       V P                  V! R\        4       \        ^R7      4      4       V P                  \        VR\        4       4       V P                  V! RR^/4      4       V P                  \        VR/ 4       V P                  \        VR\        4       V P                  \        VR\        / 4       V P                  \        VR\        \        ^R7      4       V P                  \        VR\        4       4       V P                  \        VR\        4       / 4       V P                  \        VR\        4       \        ^R7      4       R# )c                 <    \         P                  ! V \        .VO5!  # N)r	   run_stringflagsPy_file_input)sargss   &*r   run*CAPITest.test_run_stringflags.<locals>.run+   s    ,,QEEEr      a
as   ä
   äs   
N)
assertIsNonedictr   assertRaises	NameError	TypeErrorr   SyntaxErrorSystemErrorNULL)selfr   sources   &  r   test_run_stringflagsCAPITest.test_run_stringflags(   s   	F#fdQi01#fdQi45#fb$)45#fb(Q-89)S&"5)S&"b9)S&$)R@)S&$)Q?#flQ&789#flndQi@A)S&,.A#mfa[9:+sIr:+sFD9+sFD"=+sFD$)D+sFHJ?+sFHJC+sFHJq	Jr   c           	       a \         P                  ! \         P                  R 8w  d   \        M\        4      o\        SR4      ;_uu_ 4       pVP                  R4       RRR4       V P                  \        S4       V3R lpV P                  V! \        ^R7      4      4       V P                  V! \        ^R7      / 4      4       V P                  V! / \        ^R7      4      4       V P                  V! / \        ^R7      4      4       V P                  V! \        ^R7      / ^4      4       V P                  \        V/ 4       V P                  \        V/ / 4       V P                  \        V\        ^R7      . 4       V P                  \        V\        ^R7      ^4       V P                  V! \        ^R7      4      4       V P                  V! \        4       \        ^R7      4      4       V P                  \        V\        4       4       V P                  \         V\"        4       V P                  \         V\"        / 4       V P                  \         V\"        \        ^R7      4       V P                  \         V\        4       4       V P                  \         V\        4       / 4       V P                  \         V\        4       \        ^R7      4       R#   + '       g   i     EL|; i)ntwbr   Nc                  >   < \         P                  ! S\        .V O5!  # r   )r	   run_fileexflagsr   )r   filenames   *r   r   *CAPITest.test_run_fileexflags.<locals>.runO   s    ,,X}LtLLr   r    )osfsencodenamer   r   openwrite
addCleanupr   r#   r$   r   r%   r&   r'   r   r)   r*   )r+   fpr   r4   s   &  @r   test_run_fileexflagsCAPITest.test_run_fileexflagsI   s   ;;DvlK(D!!RHHV ")	M 	#dQi.)#dQi,-#b$),-#b(Q-01#dQiQ/0)S"-)S"b1)S$)R8)S$)Q7#lQ/01#lndQi89)S,.9+sD1+sD"5+sD$)<+sHJ7+sHJ;+sHJq	B5 "!!s   KK!	z)only works if there are undecodable pathsr0   zdoes not work on Windowsc           
        \         P                  p \        \        R 4      ;_uu_ 4       pVP	                  R4       RRR4       V P                  \        \        4       V P                  V! \        \        \        ^R7      4      4       R#   + '       g   i     LW; i  \         d    T P                  R4        L^i ; i)r1   r   Nz#undecodable paths are not supportedr    )r	   r3   r9   r   r:   r;   r   OSErrorskipTestr#   r   r$   )r+   r   r<   s   &  r   .test_run_fileexflags_with_undecodable_filename7CAPITest.test_run_fileexflags_with_undecodable_filenameh   s     ''	A($//2  0OOF$67 	#0-KL 0/  	AMM?@	As'   B B"B B	B B=<B=r   N)r   r   r   r   r-   r=   unittest
skipUnlessr   skipIfr6   r8   rB   r   __classdictcell__)__classdict__s   @r   r   r      sU     ,KBC> +-XY__RWW_&@AM B ZMr   r   __main__)r6   rD   collectionsr   test.supportr   test.support.os_helperr   r   r   r   r*   import_moduler	   Py_single_inputr   Py_eval_inputr$   r   TestCaser   r   mainr   r   r   <module>rR      s    	    & S S''4	++''''	4 	`Mx   `MF zMMO r   