
    shV                         S SK r S SKJr  S SKJr  S SKJr  S SKJr  S SK	J
r
Jr   " S S\5      r\S	:X  a  \ R                  " 5         gg)
    N)patch)TestCase)njit)ir)NotifyLocBase_the_registryc                   D    \ rS rSr\R
                  " SS0S9S 5       rSrg)TestMiscCoverageSupport   NUMBA_JIT_COVERAGE1)envvarsc                   ^	  " S S[         5      n[        U/-   nSn[        X25         [        S 5       nU" 5       nS S S 5        U R	                  WS5        SnWR
                  R                  U-   n[        R                  " [        S5      nU R                  SUR                  U5      4UR                  5        U R                  S	UR                  5        [        X25         S
m	[        U	4S j5       nU" 5       nS S S 5        U R	                  US5        UR
                  R                  U-   nU R                  SUR                  U5      4UR                  5        U R                  SUR                  US-   5      4UR                  5        U R                  SUR                  US-   5      4UR                  5        U R                  S	UR                  5        g ! , (       d  f       GN= f! , (       d  f       N= f)Nc                   $    \ rS rSr/ rS rS rSrg)BTestMiscCoverageSupport.test_custom_loc_notifier.<locals>.MyNotify   c                 >    U R                   R                  SU45        g )NNOTIFYrecordsappend)selflocs     z/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/tests/test_misc_coverage_support.pynotifyITestMiscCoverageSupport.test_custom_loc_notifier.<locals>.MyNotify.notify   s    ##XsO4    c                 :    U R                   R                  S5        g )NCLOSENr   )r   s    r   closeHTestMiscCoverageSupport.test_custom_loc_notifier.<locals>.MyNotify.close   s    ##O4r    N)__name__
__module____qualname____firstlineno__r   r   r!   __static_attributes__r#   r   r   MyNotifyr      s    G55r   r)   z)numba.misc.coverage_support._the_registryc                      g)N{   r#   r#   r   r   foo=TestMiscCoverageSupport.test_custom_loc_notifier.<locals>.foo   s    r   r+         r   r   Fc                     > T (       a  gg)NiA  r+   r#   )conds   r   r,   r-   1   s    r   )r   r   r   r   assertEqual__code__co_firstlinenor   Loc__file__assertInwith_linenor   assertNotIn)
r   r)   new_the_registrygvr,   resfirst_offsetoffsetr   r1   s
            @r   test_custom_loc_notifier0TestMiscCoverageSupport.test_custom_loc_notifier   s   	5} 	5 )H:582(  %C ) 	c"
 ,,|;ffXq!x!898;K;KLox'7'78 2(D 
 %C ) 	c" ,,|;x!898;K;KL 	svz23X5E5E	

 	x!!<=x?O?OPox'7'78[ )(( )(s   G G(
G%(
G6r#   N)r$   r%   r&   r'   r   run_test_in_subprocessr?   r(   r#   r   r   r
   r
      s&    $$.BC-HI:9 J:9r   r
   __main__)unittestunittest.mockr   numba.tests.supportr   numbar   
numba.corer   numba.misc.coverage_supportr   r   r
   r$   mainr#   r   r   <module>rJ      s<      (   D<9h <9~ zMMO r   