+
    f4j                     l    R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
 RR lt ! R R4      tR# )	z.
Helper to run a script in a pseudo-terminal.
N)	ExitStack)EIO)import_modulec                    \        R 4      p\        4       pVP                  4       w  rV\        P                  RV 3pVf4   / \
        P                  P                  4       CR\
        P                  /CpM VP                  R\
        P                  4       \        P                  ! WvWfVR7      p\
        P                  ! V4       \        4       ;_uu_ 4       p	V	P                  V4       R p
V	P                  W4       V	P                  \
        P                  V4       V	P                  \         P"                  ! 4       4      pVP%                  V\         P&                  \         P(                  ,          4       \
        P*                  ! VR4        VP-                  4        F  w  rV\         P&                  ,          '       d@    \
        P.                  ! VR4      pV'       g   Vu uuRRR4       # VP7                  V4       V\         P(                  ,          '       g   K   V\
        P8                  ! WQ4      R pV'       d   K  VP;                  V\         P&                  4       K  	  K    \0         d#   pTP2                  \4        8w  d   h Rp Rp?LRp?ii ; i  \0         d#   pTP2                  \4        8w  d   h Rp Rp?LRp?ii ; i  + '       g   i     R# ; i)	ptyz-cNINPUTRC)stdinstdoutstderrenvc                 L     V P                  4        R #   \         d     R # i ; iN)	terminateProcessLookupError)procs   &)lib/python3.14/test/support/pty_helper.pyr   run_pty.<locals>.terminate   s#     % s    ##Fi       )r   	bytearrayopenptysys
executableosenvironcopydevnull
setdefault
subprocessPopencloser   enter_contextcallback	selectorsSelectSelectorregister
EVENT_READEVENT_WRITEset_blockingselectreadOSErrorerrnor   extendwritemodify)scriptinputr   r   outputmasterslaveargsr   cleanupr   sel_eventschunkerrs   &&&             r   run_ptyr;      s   

C[FkkmOVNND&)D {:":Irzz:y"**-DesSDHHUO	d#	 	)6* ##I$<$<$>?VY11I4I4IIJ
&"zz|I0000$ " 8 !%; 
< MM%(I1111$ %bhhv&=&> ? !5

69+?+?@+  , # $99+! #	$ # $99+! #	$E 
ss   C)K=I$KK*+KJ4K>&K$J	/J	KJ	KK	J<	7K<K	KK	c                   0   a  ] tR t^Kt o RtR tR tRtV tR# )	FakeInputz
A fake input stream for pdb's interactive debugger.  Whenever a
line is read, print it (to simulate the user typing it), and then
return it.  The set of lines to return is specified in the
constructor; they should not have trailing newlines.
c                    Wn         R # r   lines)selfr@   s   &&r   __init__FakeInput.__init__R   s    
r   c                `    V P                   P                  ^ 4      p\        V4       VR,           # )    
)r@   popprint)rA   lines   & r   readlineFakeInput.readlineU   s%    zz~~a dd{r   r?   N)	__name__
__module____qualname____firstlineno____doc__rB   rJ   __static_attributes____classdictcell__)__classdict__s   @r   r=   r=   K   s      r   r=   )s   dummy inputN)rP   r   r"   r   r   
contextlibr   r+   r   test.support.import_helperr   r;   r=    r   r   <module>rW      s2    
   
    47A| r   