+
    ;iO]                     t   ^ RI t ^ RIt^ RIHt ^ RIt^ RIHtHtH	t	H
t
 ^ RIHtHt ^ RIHtHtHtHt ^ RIHtHtHtHtHtHtHtHtHtHt  ! R R]4      t ! R	 R
]4      t  ! R R]4      t! ! R R]4      t" ! R R]]4      t# ! R R]4      t$] ! R R]4      4       t%]&R8X  d   ]PN                  ! 4        R# R# )    N)product)njittypedobjmodeprange)ir_utilsir)CompilerErrorNumbaPerformanceWarningTypingErrorUnsupportedBytecodeError)
TestCaseunittestcaptured_stdoutMemoryLeakMixinskip_parfors_unsupportedskip_unless_scipyexpected_failure_py311expected_failure_py312expected_failure_py313expected_failure_py314c                       ] tR t^tRtR# )MyError N)__name__
__module____qualname____firstlineno____static_attributes__r       Y/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_try_except.pyr   r      s    r    r   c                      a  ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
 tR tR t]R 4       tR tR tR tRtV tR# )TestTryBareExceptzNTest the following pattern:

try:
    <body>
except Exception:
    <handling>
c                   a \         R  4       o\         V3R l4       pV P                  V! R4      R4       V P                  V! R4      R4       R# )c                 "    V '       d   \         hR # Nr   xs   &r!   inner5TestTryBareExcept.test_try_inner_raise.<locals>.inner!   s     r    c                 *   <  S! V 4       R #     R# ; i
not raisedcaughtr   )r)   r*   s   &r!   udt3TestTryBareExcept.test_try_inner_raise.<locals>.udt&   s     a# s    Fr.   Tr/   Nr   assertEqual)selfr0   r*   s   & @r!   test_try_inner_raise&TestTryBareExcept.test_try_inner_raise    sS    		 
	 
	  
	  	U\2TH-r    c                j  a \         R  4       o\         V3R l4       pV P                  \        4      ;_uu_ 4       pV! ^ 4       RRR4       V P                  \	        XP
                  4      R4       V P                  V! ^4      R4       V P                  V! R4      R4       R#   + '       g   i     Lg; i)c                 N    V ^8X  d   \        R4      hV ^8X  d   \        R4      hR# )   onetwoNr'   r(   s   &r!   r*   5TestTryBareExcept.test_try_state_reset.<locals>.inner2   s)    Aven$aen$ r    c                 N   <  S! V 4       R pT ^ 8X  d	   S! ^4       T#    Rp L; ir-   r   )r)   resr*   s   & r!   r0   3TestTryBareExcept.test_try_state_reset.<locals>.udt9   s5    a" AvaJ	s   
 $Nr;   r/   r.   )r   assertRaisesr   r3   str	exception)r4   r0   raisesr*   s   &  @r!   test_try_state_reset&TestTryBareExcept.test_try_state_reset1   s    		% 
	% 
	 
	 w''6F (V--.6Q*R,/	 ('s   	B""B2	c                    \         R  4       pV# )c                     V ^8X  d   \        R4       \        R4      hV ^8X  d   \        R4       \        R4      hV ^8X  d   \        R4       \        R4      h\        R4       R# )	r9   call_oner:   call_twor;   
call_threethree
call_otherNprintr   r(   s   &r!   r*   -TestTryBareExcept._multi_inner.<locals>.innerK   sV    Avj!en$aj!en$al#g&&l#r    )r   )r4   r*   s   & r!   _multi_innerTestTryBareExcept._multi_innerJ   s    		$ 
	$ r    c           	     v  a V P                  4       o\        V3R  l4       pV P                  \        4      ;_uu_ 4       p\	        4       ;_uu_ 4       pV! ^^^4       RRR4       RRR4       V P                  XP                  4       P                  4       . RO4       V P                  \        XP                  4      R4       \	        4       ;_uu_ 4       pV! ^^ ^4       RRR4       V P                  VP                  4       P                  4       . RO4       \	        4       ;_uu_ 4       pV! ^^^ 4       RRR4       V P                  VP                  4       P                  4       . RO4       R#   + '       g   i     EL; i  + '       g   i     EL&; i  + '       g   i     L; i  + '       g   i     L}; i)c                    <   \        R 4       S! V 4       \        R4       R#    \        R4       S! T4       \        R4        R# ; i   \        R4       S! T4       \        R4        R# ; i)ABCDEFN)rO   )r)   yzr*   s   &&&r!   r0   .TestTryBareExcept.test_nested_try.<locals>.udt^   sY    #J!H#J#J!H#Jc
ac
s   $  AA
 A
 
 A-NrL   )rU   rI   rW   rJ   rY   rK   )rU   rI   rW   rM   rX   )rU   rI   rW   rJ   rY   rM   rZ   )
rQ   r   rA   r   r   r3   getvaluesplitrB   rC   )r4   r0   rD   stdoutr*   s   &   @r!   test_nested_try!TestTryBareExcept.test_nested_try[   sG   !!#		 
	  w''6 ""fAq! # ( 	OO##%A	
 	V--.8 &1aL OO##%5	
 &1aL OO##%F	
' #"" (''  s;   FE-	FF(F(-E>8	FF	F%	(F8	c                  a V P                  4       o\        V3R  l4       p\        4       ;_uu_ 4       pV! ^^4      pRRR4       V P                  XP	                  4       P                  4       . RO4       V P                  X^4       \        4       ;_uu_ 4       pV! ^^4      pRRR4       V P                  VP	                  4       P                  4       . RO4       V P                  V^4       \        4       ;_uu_ 4       pV! ^ ^4      pRRR4       V P                  VP	                  4       P                  4       . RO4       V P                  V^4       R#   + '       g   i     EL!; i  + '       g   i     L; i  + '       g   i     L{; i)c                    <  \        R 4       \        V4       F  p\        V4       W 8X  g   K  S! V4       K   	  X#    \        R4        X# ; i)rU   rV   )rO   range)r)   nir*   s   && r!   r0   /TestTryBareExcept.test_loop_in_try.<locals>.udt   sJ    c
qA!Hva " Hc
Hs   '= = AN)rU   0123rK   rV   )rU   ri   rj   rI   rV   )rU   ri   rM   rj   rk   )rQ   r   r   r3   r^   r_   )r4   r0   r`   r>   r*   s   &   @r!   test_loop_in_try"TestTryBareExcept.test_loop_in_try   s:   !!#			 
		 &a)C OO##%8	
 	a  &a)C OO##%,	
 	a  &a)C OO##%.	
 	a 1   s#   
E
E)?
E<E&	)E9	<F	c                   \         R  4       p\        4       ;_uu_ 4       pV! R4      pRRR4       V P                  XP                  4       P	                  4       RR.4       V P                  XR4       \        4       ;_uu_ 4       pV! R4      pRRR4       V P                  VP                  4       P	                  4       RR.4       V P                  V^{4       R#   + '       g   i     L; i  + '       g   i     Lg; i)c                      \        R 4       V '       d   \        R4      h\        R4       ^{#    \        R4        R# ; i)rU   my_errorrV   rW   A  rN   r(   s   &r!   r0   0TestTryBareExcept.test_raise_in_try.<locals>.udt   s9    c
!*--c
 c
s   )- =TNrU   rW   rr   FrV   r   r   r3   r^   r_   r4   r0   r`   r>   s   &   r!   test_raise_in_try#TestTryBareExcept.test_raise_in_try   s    			 
		 &d)C  	OO##%#J	
 	c" &e*C  	OO##%#J	
 	c"#     	C	C,C)	,C<	c                  a \         V3R  l4       o\        4       ;_uu_ 4       pS! ^
4      pRRR4       V P                  X4       V P                  XP	                  4       P                  4       R.4       R#   + '       g   i     LR; i)c                    < V ^ 8  d    S! V ^,
          4       V ^8X  d   \        R4      hR#    \        R4        ^# ; i)r   CAUGHTrC   N)rO   
ValueError)r)   foos   &r!   r}   -TestTryBareExcept.test_recursion.<locals>.foo   sD    1uAJ Av -- (Os   - =Nr{   )r   r   assertIsNoner3   r^   r_   )r4   r`   r>   r}   s   &  @r!   test_recursion TestTryBareExcept.test_recursion   sk    		. 
	. &b'C  	#*002XKA	 s   	A66B	c                *  a \         R  4       o\         V3R l4       p\        4       ;_uu_ 4       pV! ^
4      pRRR4       V P                  X^4       V P                  XP                  4       P	                  4       . 4       R#   + '       g   i     LR; i)c              3   v   "   V ^ 8  d    ^x  \        R4      hR#   \         d    \        R4        R# i ; i5i)r   rC   r{   N)r|   	ExceptionrO   r(   s   &r!   r}   )TestTryBareExcept.test_yield.<locals>.foo   s=     1u$G$[11  ! $(O$s   9 96969c                 &   < \        S! V 4      4      # r&   )next)r\   r}   s   &r!   bar)TestTryBareExcept.test_yield.<locals>.bar   s    A<r    Nrt   )r4   r   r`   r>   r}   s   &   @r!   
test_yieldTestTryBareExcept.test_yield   s    		$ 
	$ 
	  
	  &b'C  	a *002B7	 s   	BB	c                    \         R  4       p\        4       ;_uu_ 4       pV! ^
4       RRR4       V P                  XP                  4       P	                  4       R.4       R#   + '       g   i     LA; i)c                     R  pV! 4        R# )c                  @     \        R 4      h   \        R4        ^# ; irC   r{   r|   rO   r   r    r!   r   9TestTryBareExcept.test_closure2.<locals>.foo.<locals>.bar   s#    $[11(Os    Nr   r)   r   s   & r!   r}   ,TestTryBareExcept.test_closure2.<locals>.foo   s     Er    Nr{   rt   r4   r}   r`   s   &  r!   test_closure2TestTryBareExcept.test_closure2   sZ    		 
	 &G  	*002XKA s   	A!!A1	c                   \         R  4       p\        4       ;_uu_ 4       pV! ^
4      pRRR4       V P                  X. RO4       V P                  XP                  4       P	                  4       R.^,          4       R#   + '       g   i     L\; i)c                 L    R  p\        V. RO4       U u. uF  q NK  	  up # u up i )c                 B     \        R 4      h   \        R4       T u # ; ir   r   r\   s   &r!   r   9TestTryBareExcept.test_closure3.<locals>.foo.<locals>.bar  s%    $[11(OHs    r9         )mapr   s   & r!   r}   ,TestTryBareExcept.test_closure3.<locals>.foo
  s*      #3	232!A2333s   
!Nr{   r   rt   r4   r}   r`   r>   s   &   r!   test_closure3TestTryBareExcept.test_closure3	  sp    		4 
	4 &b'C  	i(*002XK!OE	 s   	A<<B	c                   \         R  4       p\        4       ;_uu_ 4       pV! R4      pRRR4       V P                  XP                  4       P	                  4       R4       V P                  X4       \        4       ;_uu_ 4       pV! ^4      pRRR4       V P                  VP                  4       R4       V P                  V. RO4       R#   + '       g   i     L; i  + '       g   i     LY; i)c                 x    R  p \        V^^^V .4       U u. uF  q NK  	  up # u up i    \        R4        R# ; i)c                 *    V ^ 8  d   \        R4      hV # )r   rC   r|   r   s   &r!   r   9TestTryBareExcept.test_closure4.<locals>.foo.<locals>.bar  s    q5$[11r    r{   N)r   rO   r   s   & r!   r}   ,TestTryBareExcept.test_closure4.<locals>.foo  sC    
 #&sQ1aL#9:#9a#9::: hs   ) 
$) ) 9Nr{    r@   )r9   r   r      )r   r   r3   r^   stripr   r   s   &   r!   test_closure4TestTryBareExcept.test_closure4  s    			  
		  &b'C  	*002H=#&a&C *B/l+  s   	C	CC	C+	c                    \         R  4       p\        4       ;_uu_ 4       pV! 4        RRR4       V P                  XP                  4       P	                  4       R.4       R#   + '       g   i     LA; i)c                      \         P                  ! R4      p  \         P                  P                  V 4      pR#    \	        R4       Xu # ; i)r   r{   N)r   r   )npzeroslinalgcholeskyrO   )achols     r!   r}   0TestTryBareExcept.test_real_problem.<locals>.foo4  s<     Ayy))!,hs	   9 A
Nr{   rt   r   s   &  r!   test_real_problem#TestTryBareExcept.test_real_problem2  sX    		 
	 &E  	*002XK@ s   A  A0	c           	     P   \         R  4       p\        4       ;_uu_ 4       pV! ^
4       RRR4       T P                  XP                  4       P	                  4       R.^,          \        ^^4       Uu. uF  pRV,          NK  	  up,           4       R#   + '       g   i     Lp; iu upi )c                 
   \        V 4       F  p V^8  d   \        hK  	     X^8  d   \        hR#    \        R4        K7  ; i   \        R4       \        h; i   \        R4       \        h; i   \        R4        R# ; i)   r{   CAUGHT1CAUGHT2CAUGHT3N)re   r|   rO   )rf   rg   s   & r!   r}   ,TestTryBareExcept.test_for_loop.<locals>.fooC  s     1X$1u((  %	)- 1u&0 0  %$(O-!),",,)i(((%)$s,   3A AAA A//A2 2BNr{   zCAUGHT%s)r   r   r3   r^   r_   re   )r4   r}   r`   rg   s   &   r!   test_for_loopTestTryBareExcept.test_for_loopB  s    		% 
	%. &G  	OO##%K!OuQ{C{!zA~~{CC	
 
 Ds   	B/B#B 	c                R    \         R  4       pV! ^{4      pV P                  V^{4       R# )c                       V #     T # ; ir&   r   r(   s   &r!   r}   ,TestTryBareExcept.test_try_pass.<locals>.food  s      HHs   
Nr2   )r4   r}   r>   s   &  r!   test_try_passTestTryBareExcept.test_try_passc  s/    		 
	 #hc"r    c                    \         R  4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)c                  &     \        R 4      h   h ; iERRORr   r   r    r!   r0   6TestTryBareExcept.test_try_except_reraise.<locals>.udtp  s     ))s    N4The re-raising of an exception is not yet supported.r   rA   r   assertInrB   rC   r4   r0   rD   s   &  r!   test_try_except_reraise)TestTryBareExcept.test_try_except_reraiseo  Z    		 
	 788FE 9B  !	
 98   A!!A1	r   N)r   r   r   r   __doc__r5   rE   rQ   ra   rm   rv   r   r   r   r   r   r   r   r   r   r   r   __classdictcell____classdict__s   @r!   r#   r#      sr     ."02"+
Z(!T#BB$8(B F",0 A A
B
#
 
r    r#   c                   D   a  ] tR tRt o R tR tR tR tR tR t	Rt
V tR	# )
TestTryExceptCaughti  c                   \         R  4       p\        4       ;_uu_ 4       pV! R4       RRR4       V P                  XP                  4       P	                  4       . RO4       \        4       ;_uu_ 4       pV! R4       RRR4       V P                  VP                  4       P	                  4       . RO4       R#   + '       g   i     L; i  + '       g   i     LU; i)c                      \        R 4       V '       d   \        R4      h\        R4       \        R4       R#   \         d    \        R4        L%i ; i)rU   321rV   rW   rX   NrO   ZeroDivisionErrorr   r(   s   &r!   r0   5TestTryExceptCaught.test_catch_exception.<locals>.udt  sD    c
+E22c
 #J  c
s   )8 AATNF)rU   rW   rX   rU   rV   rX   rt   )r4   r0   r`   s   &  r!   test_catch_exception(TestTryExceptCaught.test_catch_exception  s    		 
	 &I  	OO##%	
 &J  	OO##%	
  s   	B52	C5C	C	c                   \         R  4       p\        4       ;_uu_ 4       pV! R4      pRRR4       V P                  XP                  4       P	                  4       RR.4       V P                  XR4       \        4       ;_uu_ 4       pV! R4      pRRR4       V P                  VP                  4       P	                  4       . RO4       V P                  V^{4       R#   + '       g   i     L; i  + '       g   i     Lg; i)c                      \        R 4       V '       d   \        h\        R4       ^{p\        R4       T#   \         d    \        R4       RpTu # i ; i)rU   rV   rW   rr   rX   r   )r)   rs   & r!   r0   5TestTryExceptCaught.test_return_in_catch.<locals>.udt  sS    	c
++c

 #JH  c
s   &5 AATNrU   rW   rr   Fr   rt   ru   s   &   r!   test_return_in_catch(TestTryExceptCaught.test_return_in_catch  s    		 
	 &d)C  	OO##%#J	
 	c" &e*C  	OO##%	
 	c"#  rx   c                    \         R  4       pV P                  \        4      ;_uu_ 4       pV! R4       RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)c                 `     V '       d   \         h^{pV#   \         d   pRpTu Rp?# Rp?ii ; i){   rr   N)r   r   )r)   r   es   &  r!   r0   1TestTryExceptCaught.test_save_caught.<locals>.udt  s8    ++ H  s     -(--TNz3Exception object cannot be stored into variable (e)r   r   s   &  r!   test_save_caught$TestTryExceptCaught.test_save_caught  s\    		 
	 788FI 9A  !	
 98s   	A""A2	c                    \         R  4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)c                  :     \        R 4      h  \         d    h i ; ir   r|   r   r   r    r!   r0   8TestTryExceptCaught.test_try_except_reraise.<locals>.udt  s$     )) s    Nr   r   r   s   &  r!   r   +TestTryExceptCaught.test_try_except_reraise  r   r   c                    \         R  4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  R\	        XP
                  4      4       R#   + '       g   i     L7; i)c                  \     \        R 4      h  \         d     h   \         d    h i ; ii ; ir   r   r   r    r!   r0   >TestTryExceptCaught.test_try_except_reraise_chain.<locals>.udt  s;     ))   s    +'+Nr   r   r   s   &  r!   test_try_except_reraise_chain1TestTryExceptCaught.test_try_except_reraise_chain  sZ    		 
	 788FE 9B  !	
 98r   c                ~    \         R  4       pV P                  V! ^ 4      R4       V P                  V! ^4      R4       R# )c                 L     ^V ,           ^V ,          #   \          d     R# i ; i)r9     )r   r[   s   &r!   r0   7TestTryExceptCaught.test_division_operator.<locals>.udt  s-    A 1u  s   	 ##r   g      ?Nr2   r4   r0   s   & r!   test_division_operator*TestTryExceptCaught.test_division_operator  s@     
	 
	 	Q(Q%r    r   N)r   r   r   r   r   r   r   r   r   r  r   r   r   s   @r!   r   r     s)     
<"#H
&

$& &r    r   c                   6   a  ] tR tRt o RtR tR tR tRtV t	R# )TestTryExceptNestedi  zTests for complicated nestingc                b   \        4       ;_uu_ 4       pV! V/ VB  R R R 4       XP                  4       p\        4       ;_uu_ 4       pV! V/ VB  R R R 4       VP                  4       pV P                  WgRP                  W44      R7       R #   + '       g   i     Lw; i  + '       g   i     LW; i)Nzargs={} kwargs={})msg)r   r^   r3   format)r4   cfuncpyfuncargskwargsr`   expectgots   &&&*,   r!   check_compare!TestTryExceptNested.check_compare	  s    &D#F# "&4"6" oo#**48 	 	
  s   	B	BB	B.	c           
         \         R  4       p\        \        RR.^R7      4      pV P                  V4       V F$  w  r4rVV P	                  WP
                  W4WVR7       K&  	  R# )c                 ^   \        R 4       V '       dW   \        R4        \        R4       V'       d   \        R4       \        R4      h\        R4       \        R4       \        R4       \        R4       R#   \         d    \        R4        \        R4        \        R	4       T'       d   \        R
4       \        R4      h\        R4       \        R4       M  \         d    \        R4        Mi ; i\        R4       M  \         d    \        R4        Mi ; i\        R4        Li ; i)rU   rV   rW   rX   r[   rY   GrZ   HIJr\   KMLONPQRNrO   r   r   r)   r[   r\   ps   &&&&r!   r0   5TestTryExceptNested.test_try_except_else.<locals>.udt  s    #Jc
#Jc
%cl*#J* #Jc
#J- ! #J#c
	'!#J  %c
&-cl 2!#J "#J  ) '!#J' c
 % #c
# #J%sY   4A7 7D,D4CDC30D2C33D6D,DD,DD,+D,TFrepeatr  Nr   listr   
assertTruer  py_func)r4   r0   casesr)   r[   r\   r   s   &      r!   test_try_except_else(TestTryExceptNested.test_try_except_else  se    	 	 
 	D WdE]156JA![[A    r    c                    \         R  4       p\        \        RR.^R7      4      pV P                  V4       V F"  w  r4V P	                  WP
                  W4R7       K$  	  R# )c                 6    \        R 4       V '       d   \        R4       \        h\        R4        \        R4       T'       d   \        R4       \        h \        R4       \        R4       R	#    \        R4        LM; i  \         d    \        R4        L7i ; i  \        R4       i ; i   \        R4       T'       d   \        R4       \        h \        R4       M  \         d    \        R4        Mi ; i\        R4       i   \        R4       i ; i; i)
rU   rV   rW   rX   rY   rZ   r  r  r  Nr  r   qs   &&r!   r0   8TestTryExceptNested.test_try_except_finally.<locals>.udtC  s    c
#J!Mc

#Jc
%  #J#Jc
 ! #J
 #J
#Jc
%  #J ! #J
 #JE#Jsv   /A/ $B B /A><B- BB BB B*-D/$C D C96D8C99D<DDDTFr"  r-  Nr$  )r4   r0   r(  r   r.  s   &    r!   test_try_except_finally+TestTryExceptNested.test_try_except_finallyB  s`    		 
	, WdE]156DA[[   r    r   N)
r   r   r   r   r   r  r)  r0  r   r   r   s   @r!   r  r    s     #
*X r    r  c                   2   a  ] tR tRt o R tR tR tRtV tR# )TestTryExceptRefctic  c                    \         R  4       pV! ^
^R7      pV P                  \        V4      \        \        ^4      4      4       V! ^
^
R7      pV P                  \        V4      \        \        ^
4      4      4       R# )c                     \         P                  ! 4       p \        V 4       F   pW18X  d   \        hVP	                  V4       K"  	  V#   \
         d    Tu # i ; ir&   )r   Listre   
IndexErrorappendr   )rf   raise_atlstrg   s   &&  r!   r0   6TestTryExceptRefct.test_list_direct_raise.<locals>.udte  sS    **,CqA}((JJqM " 
  
s   /A AAr9  Nr   r3   r%  re   )r4   r0   outs   &  r!   test_list_direct_raise)TestTryExceptRefct.test_list_direct_raised  sf    	
	 

	 "q!cDqN3"r"cDrO4r    c           	     :  a \         R  4       o\         V3R l4       pV! ^
^R7      pV P                  \        V4      R.\        \        ^4      4      ,           4       V! ^
^
R7      pV P                  \        V4      R.\        \        ^
4      4      ,           4       R# )c                 d    \        V4       F   pW28X  d   \        hV P                  V4       K"  	  V # r&   )re   r7  r8  )r:  rf   r9  rg   s   &&& r!   appender=TestTryExceptRefct.test_list_indirect_raise.<locals>.appenderx  s-    1X=$$

1  Jr    c                    < \         P                  ! 4       pVP                  R 4        S! W V4       V#   \         d    Tu # i ; i)  )r   r6  r8  r   )rf   r9  r:  rC  s   && r!   r0   8TestTryExceptRefct.test_list_indirect_raise.<locals>.udt  sF    **,CJJv* 
  
s   	4 AAr<  rF  Nr=  )r4   r0   r>  rC  s   &  @r!   test_list_indirect_raise+TestTryExceptRefct.test_list_indirect_raisew  s    		 
	 
	 
	 "q!cVHtE!H~$=>"r"cVHtE"I$>?r    c                    \         R  4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  \	        XP
                  4      R4       R#   + '       g   i     L7; i)c                       \         P                  ! 4       p \        R 4       V P                  ^ 4       \        R4       V P                  R4       \        R4       V #   \         d    \        R4        R# i ; i)rU   rV   fdarW   rX   N)r   r6  rO   r8  r   )r:  s    r!   r0   <TestTryExceptRefct.test_incompatible_refinement.<locals>.udt  sY    	jjlc


1c


5!c

 c
s   AA A65A6Nz@Cannot refine type|cannot safely cast unicode_type to int(32|64))r   rA   r   assertRegexrB   rC   r   s   &  r!   test_incompatible_refinement/TestTryExceptRefct.test_incompatible_refinement  s[    	
	 

	 {++vE ,  !O	
 ,+r   r   N)	r   r   r   r   r?  rH  rO  r   r   r   s   @r!   r3  r3  c  s     5&@2
 
r    r3  c                      a  ] tR tRt o R t]]]]R 4       4       4       4       t	]]]]R 4       4       4       4       t
R tRtV tR# )TestTryExceptOtherControlFlowi  c                    \         R  4       pV P                  \        V! ^
^4      4      \        \        ^4      4      4       V P                  \        V! ^
^
4      4      \        \        ^
4      4      4       R# )c              3   z   "   \        V 4       F  p W!8X  d   \        hVx  K  	  R #   \         d      R # i ; i5ir&   )re   r|   r   )rf   r)   rg   s   && r!   r0   5TestTryExceptOtherControlFlow.test_yield.<locals>.udt  s;     1Xv((G	 
 ! s   ;(;8;8;Nr=  r   s   & r!   r   (TestTryExceptOtherControlFlow.test_yield  s\    		 
	 	c"aj)4a>:c"bk*DrO<r    c                    \         R  4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       RpV P                  V\	        XP
                  4      4       R#   + '       g   i     L9; i)c                       \        4       ;_uu_ 4        \        \        4       4       R R R 4       R #   + '       g   i     R # ; i  \         d     R # i ; ir&   )r   rO   objectr   r   r    r!   r0   7TestTryExceptOtherControlFlow.test_objmode.<locals>.udt  s4    YY&(O YYY s*   A 2A A	A A AANlunsupported control flow: with-context contains branches (i.e. break/return/raise) that can leave the block r   rA   r
   r   rB   rC   )r4   r0   rD   r  s   &   r!   test_objmode*TestTryExceptOtherControlFlow.test_objmode  sc    
 
	 
	 }--E .E  !	
	 .-s   A##A3	c                   a R  o\         V3R l4       pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       RpV P                  V\	        XP
                  4      4       R#   + '       g   i     L9; i)c                 n    \         P                  ! \        \        V P	                  4       4      4      4      # r&   )r   asarrayr%  reversedtolistr(   s   &r!   r   CTestTryExceptOtherControlFlow.test_objmode_output_type.<locals>.bar  s!    ::d8AHHJ#7899r    c                    < \         P                  ! ^4      p \         P                  ! V 4      p \        RR7      ;_uu_ 4        VS! V 4      ,          pRRR4       V#   + '       g   i     T# ; i  \         d     T# i ; i)r   zintp[:]r   N)r   arange
zeros_liker   r   )r)   r[   r   s     r!   r]  LTestTryExceptOtherControlFlow.test_objmode_output_type.<locals>.test_objmode  so    		!Aa Ay))QKA *
 H *)
 H  Hs/   A1 AA1 A.	(A1 .A1 1B ?B Nr[  r\  )r4   r]  rD   r  r   s   &   @r!   test_objmode_output_type6TestTryExceptOtherControlFlow.test_objmode_output_type  si    
	: 
		 
		 }--N .E  !	
	 .-s   A**A:	c                   R  p\         P                  ! V4       F  pVP                  R8X  g   K   M	  V P                  R4       \        P
                  ! / VP                  4      pRpVP                  P                  4        F\  w  rVVP                  \        P                  4       F4  pRpVP                  '       g   K  WP                  ^ ,          9   g   K2  RpK6  	  K^  	  V'       g   V P                  R4       R# R# )c                  D     \         h  \          d    \        R 4      hi ; ir   )r   r|   r   r    r!   r	  MTestTryExceptOtherControlFlow.test_reraise_opcode_unreachable.<locals>.pyfunc  s&    * * ))*s    RERAISEz!expected RERAISE opcode not foundFz8Unreachable condition reached (op code RERAISE executed)Tz.expected RERAISE unreachable message not foundN)disget_instructionsopnamefailr   get_ir_of_code__code__blocksitems
find_instsr	   StaticRaiseexc_args)	r4   r	  instfunc_irfoundlblblkstmtr  s	   &        r!   test_reraise_opcode_unreachable=TestTryExceptOtherControlFlow.test_reraise_opcode_unreachable  s    
	*
 ((0D{{i' 1 II9:))"foo>,,.HCr~~6 Q===SMM!,<%< E 7 / IIFG r    r   N)r   r   r   r   r   r   r   r   r   r]  ri  r  r   r   r   s   @r!   rR  rR    sn     = 
    
$ 
    
2H Hr    rR  c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )TestTryExceptParforsi  c                    R  p^
.pV! V!  pV P                  \        RR7      ! V4      ! V!  V4       V P                  \        RR7      ! V4      ! V!  V4       R# )c                 x    ^ p\        V 4       F  p V^,          pK  	  V#   \         d    T^,          p K*  i ; i)r   r   r   rf   crg   s   &  r!   r0   >TestTryExceptParfors.test_try_in_prange_reduction.<locals>.udt
  sD    AAYFA 
 H ! FAs   	!99FparallelTN)r3   r   r4   r0   r
  r  s   &   r!   test_try_in_prange_reduction1TestTryExceptParfors.test_try_in_prange_reduction  sW    	 tdu-c2D96Bt,S148&Ar    c                   R  p^
.pV! V!  pV P                  \        RR7      ! V4      ! V!  V4       \        P                  ! RR7      ;_uu_ 4       p\        P                  ! R\
        4       V P                  \        RR7      ! V4      ! V!  V4       RRR4       V P                  \        X4      ^4       V P                  R\        V^ ,          4      4       R#   + '       g   i     LO; i)c                 f    ^ p \        V 4       F  pV^,          pK  	  V#   \         d     R# i ; i)r   r   r  r  s   &  r!   r0   CTestTryExceptParfors.test_try_outside_prange_reduction.<locals>.udt  s>    AAFA #
   s   ! 00Fr  T)recordalwaysNz5no transformation for parallel execution was possible)	r3   r   warningscatch_warningssimplefilterr   lenr   rB   )r4   r0   r
  r  ws   &    r!   !test_try_outside_prange_reduction6TestTryExceptParfors.test_try_outside_prange_reduction  s    	 tdu-c2D96B$$D11Q!!(,CDT405t<fE 2 	Q#M!A$i	!	 21s   ACC+	c                    R  p\         P                  ! ^
4      ^.pV! V!  pV P                  \        RR7      ! V4      ! V!  V4       V P                  \        RR7      ! V4      ! V!  V4       R# )c                     V P                  4       p\        V P                  4       F!  p W18X  d   \        hW,          V,           W#&   K#  	  V#   \         d	    RY#&    K9  i ; ir9   r@   copyr   sizer|   r   arrr)   r>  rg   s   &&  r!   r0   8TestTryExceptParfors.test_try_in_prange_map.<locals>.udt0  s\    ((*CCHH% v(( VaZCF	 & J !  CF s   AA A Fr  TNr   rf  assertPreciseEqualr   r  s   &   r!   test_try_in_prange_map+TestTryExceptParfors.test_try_in_prange_map/  b    		 		"q!de 4S 94 @&Id 3C 8$ ?Hr    c                    R  p\         P                  ! ^
4      ^.pV! V!  pV P                  \        RR7      ! V4      ! V!  V4       V P                  \        RR7      ! V4      ! V!  V4       R# )c                     V P                  4       p \        V P                  4       F   pW18X  d   \        hW,          V,           W#&   K"  	  V#   \         d
    RTX&    T# i ; ir  r  r  s   &&  r!   r0   =TestTryExceptParfors.test_try_outside_prange_map.<locals>.udtA  sc    ((*C)Av(( VaZCF * J  AJs   9A A! A!Fr  TNr  r  s   &   r!   test_try_outside_prange_map0TestTryExceptParfors.test_try_outside_prange_map@  r  r    r   N)
r   r   r   r   r  r  r  r  r   r   r   s   @r!   r  r    s"     B !.I"I Ir    r  __main__)(r  ro  	itertoolsr   numpyr   numbar   r   r   r   
numba.corer   r	   numba.core.errorsr
   r   r   r   numba.tests.supportr   r   r   r   r   r   r   r   r   r   r   r   r#   r   r  r3  rR  r  r   mainr   r    r!   <module>r     s     
   . . #   	i 	d
 d
ND&( D&NZ( Zz@
( @
F\HH \H~ II8 II IIX zMMO r    