+
     Bi
                        R t ^ RIHt ^ RIHt ^ RIt^ RIHt ^ RIt]P                  t	R]	P                  9   tRt]R,           t ! R R	]P                  4      t ! R
 R]P                  4      t]
R8X  d   ]P"                  ! ^R7       R# R# )a6  Test warnings replacement in pyshell.py and run.py.

This file could be expanded to include traceback overrides
(in same two modules). If so, change name.
Revise if output destination changes (http://bugs.python.org/issue18318).
Make sure warnings module is left unaltered (http://bugs.python.org/issue18081).
)run)pyshellN)captured_stderridlezf
Warning (from warnings module):
  File "test_warning.py", line 99
    Line of code
UserWarning: Test
z>>> c                   X   a  ] tR t^t o ]P
                  ! ]R4      R 4       tR tRt	V t
R# )RunWarnTest#Does not work when run within Idle.c                J   V P                  \        P                  \        4       \        P                  ! R 4       V P                  \        P                  \        P
                  4       \        P                  ! R4       V P                  \        P                  \        4       R# TFN)assertIswarningsshowwarningr   capture_warningsidle_showwarning_subprocselfs   &5/usr/lib/python3.14/idlelib/idle_test/test_warning.pytest_showwarningsRunWarnTest.test_showwarnings!   s`    h**K8T"h**C,H,HIU#h**K8    c           
     "   \        4       ;_uu_ 4       p\        P                  ! R \        R^cVR4       V P	                  \
        P                  4       VP                  4       P                  4       4       RRR4       R#   + '       g   i     R# ; iTestztest_warning.pyzLine of codeN)r   r   r   UserWarningassertEqualidlemsg
splitlinesgetvaluer   fs   & r   test_run_showRunWarnTest.test_run_show)   sc    !((K):B>S W//11::<3J3J3LM	    A A==B	 N)__name__
__module____qualname____firstlineno__unittestskipIfrunning_in_idler   r    __static_attributes____classdictcell____classdict__s   @r   r   r      s0     ___&KL9 M9N Nr   r   c                   ^   a  ] tR t^1t o ]P
                  ! ]R4      R 4       tR tR t	Rt
V tR# )ShellWarnTestr   c                J   V P                  \        P                  \        4       \        P                  ! R 4       V P                  \        P                  \        P
                  4       \        P                  ! R4       V P                  \        P                  \        4       R# r
   )r   r   r   shellr   idle_showwarningr   s   &r   r   ShellWarnTest.test_showwarnings3   s`    h**K8t$h**E,B,BCu%h**K8r   c                n    \         P                  ! R \        R^cR4      pV P                  \        V4       R# r   )r2   idle_formatwarningr   r   r   )r   ss   & r   test_idle_formatter!ShellWarnTest.test_idle_formatter;   s/    $$%6NL!$r   c           
     "   \        4       ;_uu_ 4       p\        P                  ! R \        R^cVR4       V P	                  \
        P                  4       VP                  4       P                  4       4       RRR4       R#   + '       g   i     R# ; ir   )r   r2   r3   r   r   shellmsgr   r   r   s   & r   test_shell_showShellWarnTest.test_shell_showA   sa    !""K):B>SX002AJJL4K4K4MN r"   r#   N)r$   r%   r&   r'   r(   r)   r*   r   r8   r<   r+   r,   r-   s   @r   r0   r0   1   s5     ___&KL9 M9%O Or   r0   __main__)	verbosity)__doc__idlelibr   r   r2   r(   test.supportr   r   r   r$   r*   r   r;   TestCaser   r0   mainr#   r   r   <module>rE      s     $  (  "" K000 VN(## N$OH%% O. zMMA r   