
    sh                         S SK r S SKrS SKJr  \S 5       r\S 5       r\S 5       r\S 5       r " S S\R                  5      r	\
S	:X  a  \R                  " 5         gg)
    N)njitc                 
    X-   $ N abs     y/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/tests/test_sys_stdin_assignment.pyf0r      	    5L    c                 4    X:  a  [        X#X5      $ US-   U:  $ N   )f1begin1end1begin2end2s       r
   r   r      s"    r&==!8vr   c                 
    X-   $ r   r   r   s     r
   f0_2r      r   r   c                 4    X:  a  [        X#X5      $ US-   U:  $ r   )f1_2r   s       r
   r   r      s"    tF&??!8vr   c                       \ rS rSrS rSrg)TestSysStdinAssignment   c                    [         R                  [         R                  4n S[         l        [        SS5        U R	                  [         R                  S5        [        SSSS5        U R	                  [         R                  S5        S[         l        [        SS5        U R	                  [         R                  S5        [        SSSS5        U R	                  [         R                  S5        Uu  [         l        [         l        U R                  [         R                  S5        U R                  [         R                  S5        g! Uu  [         l        [         l        f = f)at  
https://github.com/numba/numba/issues/3027
Older versions of colorama break stdout/err when recursive functions
are compiled.

This test should work irrespective of colorama version, or indeed its
presence. If the version is too low, it should be disabled and the test
should work anyway, if it is a sufficiently high version or it is not
present, it should work anyway.
Nr   r         )	sysstdoutstderrr   assertEqualr   r   r   assertNotEqual)self
originallys     r
   test_no_reassignment_of_stdout5TestSysStdinAssignment.test_no_reassignment_of_stdout   s     ZZ+
	0CJq!HSZZ.q!QNSZZ.CJAJSZZ.Aq!SZZ. &0"CJ
CJJ-CJJ- &0"CJ
s   C
E Er   N)__name__
__module____qualname____firstlineno__r(   __static_attributes__r   r   r
   r   r      s    .r   r   __main__)r!   unittestnumbar   r   r   r   r   TestCaser   r*   mainr   r   r
   <module>r4      s    
      
    
!.X.. !.H zMMO r   