+
    :i`>                     (   R t ^ RIt^ RIt^ RIt^ RIHtHtHt ^ RI	H
t
 ^ RIHt ^ RIHtHtHtHt ^ RIHt ^ RIHtHtHt ^ RIHtHtHtHt ^ R	IHt ^ R
IH t! ^ RI"H#t#H$t$H%t%H&t&H't'H(t( ^ RI)t) ! R R])PP                  4      t* ! R R])PP                  4      t+ ! R R])PP                  4      t, ! R R])PP                  4      t- ! R R]%])PP                  4      t. ! R R]%](4      t/ ! R R])PP                  4      t0]1R8X  d   ])Pd                  ! 4        R# R# )z"
Unspecified error handling tests
N)jitnjittypes)errors)	structref)overload	intrinsicoverload_methodoverload_attribute)CompilerBase)TranslateByteCode	FixupArgsIRProcessing)NopythonTypeInferenceDeadCodeEliminationNoPythonBackendNativeLowering)PassManager)_err_reasons)skip_parfors_unsupportedoverride_configSerialMixinskip_unless_cffiskip_unless_scipyTestCasec                   &   a  ] tR t^t o R tRtV tR# )TestErrorHandlingBeforeLoweringc                "   R  p\         \        3 Fh  pV P                  \        P                  4      ;_uu_ 4       pV! V4      ! ^4       RRR4       RpV P                  V\        XP                  4      4       Kj  	  R#   + '       g   i     L=; i)c                &   a V ^,           oV3R lpV# )zreturn the closure c                    < V S,           # N )xzs   &\/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_errorhandling.pyinnermTestErrorHandlingBeforeLowering.test_unsupported_make_function_return_inner_func.<locals>.func.<locals>.inner#   s    1u    r!   )r"   r%   r#   s   & @r$   func^TestErrorHandlingBeforeLowering.test_unsupported_make_function_return_inner_func.<locals>.func   s    AALr'   Nz%Cannot capture the non-constant value)r   r   assertRaisesr   TypingErrorassertInstr	exception)selfr(   pipelineraisesexpecteds   &    r$   0test_unsupported_make_function_return_inner_funcPTestErrorHandlingBeforeLowering.test_unsupported_make_function_return_inner_func   sh    	 T	H""6#5#566&q! 7 ?HMM(C(8(8$9: "66s   A>>Br!   N)__name__
__module____qualname____firstlineno__r3   __static_attributes____classdictcell____classdict__s   @r$   r   r      s     ; ;r'   r   c                   &   a  ] tR t^/t o R tRtV tR# )TestUnsupportedReportingc                    \         R  4       pV P                  \        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                  6    \         P                  ! . RO4       R# )   N)rA         )np
asanyarrayr!   r'   r$   r(   FTestUnsupportedReporting.test_unsupported_numpy_function.<locals>.func3   s    MM'"r'   Nz4Use of unsupported NumPy function 'numpy.asanyarray'r   r*   r   r+   r,   r-   r.   )r/   r(   r1   r2   s   &   r$   test_unsupported_numpy_function8TestUnsupportedReporting.test_unsupported_numpy_function1   sc    		# 
	# v1122fF 3 JhF$4$4 56	 32   A--A=	r!   N)r5   r6   r7   r8   rH   r9   r:   r;   s   @r$   r>   r>   /   s     
7 
7r'   r>   c                   `   a  ] tR t^>t o R tR tR tR tR tR t	]
R 4       tR tR	 tR
tV tR# )TestMiscErrorHandlingc                |    \         R  4       p\        P                  ! R.\        P                  R7      pV! V4       R# )c                     ^
V ,          # )
   r!   r"   s   &r$   fnHTestMiscErrorHandling.test_use_of_exception_for_flow_control.<locals>.fnE   s    q5Lr'   g      ?)dtypeN)r   rD   arrayfloat64)r/   rQ   as   &  r$   &test_use_of_exception_for_flow_control<TestMiscErrorHandling.test_use_of_exception_for_flow_control@   s5    
 
	 
	 HHcU,
1r'   c                    R  pR pW3 FU  pV P                  \        4      ;_uu_ 4       pV! 4        RRR4       V P                  R\        XP                  4      4       KW  	  R#   + '       g   i     L;; i)c                      \        R 4      h)test_string	Exceptionr!   r'   r$   foo_commented_TestMiscErrorHandling.test_commented_func_definition_is_not_a_definition.<locals>.foo_commentedR       M**r'   c                     \        R4      h)z=def docstring containing def might match function definition!r[   r\   r!   r'   r$   foo_docstring_TestMiscErrorHandling.test_commented_func_definition_is_not_a_definition.<locals>.foo_docstringV   r`   r'   Nr[   )r*   r]   r,   r-   r.   )r/   r^   rb   r(   r1   s   &    r$   2test_commented_func_definition_is_not_a_definitionHTestMiscErrorHandling.test_commented_func_definition_is_not_a_definitionL   sZ    	+	+ #2D""9-- . MM-V-=-=)>?	 3--s   A%%A5c                B    ! R  R\         4      p\        VR7      R 4       pV P                  \        P                  4      ;_uu_ 4       pV! \        ^^.4      4       RRR4       RpV P                  V\        XP                  4      4       R#   + '       g   i     L9; i)c                   &   a  ] tR t^bt o R tRtV tR# )FTestMiscErrorHandling.test_use_of_ir_unknown_loc.<locals>.TestPipelinec                v   R p\        V4      pVP                  \        R4       VP                  \        R4       VP                  \        R4       VP                  \
        R4       VP                  \        R4       VP                  \        R4       VP                  \        R4       VP                  4        V.# )bad_DCE_pipelinezanalyzing bytecodezfix up argszprocessing IRDCEznopython frontendznative loweringznopython mode backend)
r   add_passr   r   r   r   r   r   r   finalize)r/   namepms   &  r$   define_pipelinesWTestMiscErrorHandling.test_use_of_ir_unknown_loc.<locals>.TestPipeline.define_pipelinesc   s    ) &-/CDI}5L/: /713FGN,=>O-DEtr'   r!   N)r5   r6   r7   r8   rp   r9   r:   r;   s   @r$   TestPipelinerh   b   s      r'   rr   )pipeline_classc                     ^ # )    r!   rV   s   &r$   f;TestMiscErrorHandling.test_use_of_ir_unknown_loc.<locals>.fs   s    r'   Nz File "unknown location", line 0:)	r   r   r*   r   r+   iterr,   r-   r.   )r/   rr   rw   r1   r2   s   &    r$   test_use_of_ir_unknown_loc0TestMiscErrorHandling.test_use_of_ir_unknown_loc`   s    	< 	" 
\	*	 
+	 v1122fdAa5kN 3 6hF$4$4 56	 32s   	BB	c                    V P                  \        P                  4      ;_uu_ 4       pV! 4        R R R 4       RR.pV F(  pV P                  V\	        XP
                  4      4       K*  	  R #   + '       g   i     LD; i)NzThe use of az'in globals, is not supported as globals)r*   r   r+   r,   r-   r.   )r/   r(   r1   r2   exs   &&   r$   check_write_to_globals,TestMiscErrorHandling.check_write_to_globals}   s^    v1122fF 3 #$MNBMM"c&"2"234 	 32s   A,,A<	c                F    ^ RI Hp V P                  \        V4      4       R# )ru   )global_reflected_writeN)"numba.tests.errorhandling_usecasesr   r~   r   )r/   r   s   & r$   *test_handling_of_write_to_reflected_global@TestMiscErrorHandling.test_handling_of_write_to_reflected_global   s    M##D)?$@Ar'   c                F    ^ RI Hp V P                  \        V4      4       R# )ru   )global_dict_writeN)r   r   r~   r   )r/   r   s   & r$   +test_handling_of_write_to_typed_dict_globalATestMiscErrorHandling.test_handling_of_write_to_typed_dict_global   s    H##D):$;<r'   c                   \        R R7      R 4       pV P                  \        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)T)parallelc                  *    \        ^
4       F  p K  	  R# )rO   N)prange)is    r$   fooPTestMiscErrorHandling.test_handling_forgotten_numba_internal_import.<locals>.foo   s    BZ  r'   NzC'prange' looks like a Numba internal function, has it been importedrG   )r/   r   r1   r2   s   &   r$   -test_handling_forgotten_numba_internal_importCTestMiscErrorHandling.test_handling_forgotten_numba_internal_import   sg    	t		 
	 v1122fE 3+hF$4$4 56 32s   A33B	c                ,   R  pRp\        RR7      \        3 Fe  pV P                  \        P                  4      ;_uu_ 4       pV! V4      ! 4        RRR4       V P                  V\        XP                  4      4       Kg  	  R#   + '       g   i     L;; i)c                  *    R  \        ^
4       4        R# )c              3   $   "   T F  qx  K  	  R # 5ir    r!   ).0r"   s   & r$   	<genexpr>dTestMiscErrorHandling.test_handling_unsupported_generator_expression.<locals>.foo.<locals>.<genexpr>   s     "	1Q	s   N)ranger!   r'   r$   r   QTestMiscErrorHandling.test_handling_unsupported_generator_expression.<locals>.foo   s    "b	"r'   z-The use of yield in a closure is unsupported.T)forceobjN)r   r   r*   r   UnsupportedErrorr,   r-   r.   )r/   r   r2   decr1   s   &    r$   .test_handling_unsupported_generator_expressionDTestMiscErrorHandling.test_handling_unsupported_generator_expression   sj    	# C%t+C""6#:#:;;vC
 <MM(C(8(8$9: ,;;s   BBc                    \         R  4       pRpV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       V P	                  V\        XP                  4      4       R#   + '       g   i     L7; i)c                      \         # r    rv   r!   r'   r$   r   CTestMiscErrorHandling.test_handling_undefined_variable.<locals>.foo   s    Hr'   z"NameError: name 'a' is not definedNrG   )r/   r   r2   r1   s   &   r$    test_handling_undefined_variable6TestMiscErrorHandling.test_handling_undefined_variable   s`    		 
	 8v1122fE 3hF$4$4 56 32s   A--A=	r!   N)r5   r6   r7   r8   rW   rd   rz   r~   r   r   r   r   r   r   r9   r:   r;   s   @r$   rL   rL   >   sH     
@(7:5B= 7 7	;	7 	7r'   rL   c                      a  ] tR t^t o R tR t]R 4       tR tR t	R t
R tR tR	 tR
 tR t]R 4       tR tRtV tR# )TestErrorMessagesc                  aa R oR o\        S4      V3R l4       p\        V3R l4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  \        R,          P                  4       ^ ,          V4       V P                  SV4       R#   + '       g   i     Lk; i)specific_reasonc                      R # r    r!   r!   r'   r$   r   2TestErrorMessages.test_specific_error.<locals>.foo       r'   c                  0   < \         P                  ! S 4      hr    )r   NumbaValueError)given_reasons   r$   ol_foo5TestErrorMessages.test_specific_error.<locals>.ol_foo   s    ((66r'   c                     < S ! 4        R # r    r!   r   s   r$   call_foo7TestErrorMessages.test_specific_error.<locals>.call_foo       Er'   Nspecific_error)
r   r   r*   r   r+   r-   r.   r,   error_reasons
splitlines)r/   r   r   r1   excstrr   r   s   &    @@r$   test_specific_error%TestErrorMessages.test_specific_error   s    (	 
#	7 
	7 
	 
	 v1122fJ 3 V%%&m$45@@B1EvNlF+ 32s   B==C	c                0  a R  o\        S4      R 4       p\        V3R l4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     L9; i)c                      R # r    r!   r!   r'   r$   r   2TestErrorMessages.test_no_match_error.<locals>.foo   r   r'   c                      R # r    r!   r!   r'   r$   r   5TestErrorMessages.test_no_match_error.<locals>.ol_foo   s    r'   c                     < S ! 4        R # r    r!   r   s   r$   r   7TestErrorMessages.test_no_match_error.<locals>.call_foo   r   r'   NzNo match)r   r   r*   r   r+   r-   r.   r,   )r/   r   r   r1   r   r   s   &    @r$   test_no_match_error%TestErrorMessages.test_no_match_error   s    	 
#	 
	 
	 
	 v1122fJ 3 V%%&j&)	 32s   BB	c                   \         R 4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \	        XP
                  4      pV P                  \        R,          P                  4       ^ ,          V4       \        P                  P                  RRR4      pRV R2pV P                  VP                  V4      V4       R#   + '       g   i     L; i)	zChecks that the reported source location for an overload is the
overload implementation source, not the actual function source from the
target library.c                  D    \         P                  P                  R 4       R# )charsN)rD   linalgsvdr!   r'   r$   r   DTestErrorMessages.test_error_function_source_is_correct.<locals>.foo   s    IIMM'"r'   Nr   numbarD   z	linalg.pyz'Overload in function 'svd_impl': File: :)r   r*   r   r+   r-   r.   r,   r   r   ospathjoinformat)r/   r   r1   r   expected_filer2   s   &     r$   %test_error_function_source_is_correct7TestErrorMessages.test_error_function_source_is_correct   s     
	# 
	# v1122fE 3 V%%&m$45@@B1EvNWdK@<]O1Mhoom4f= 32s   CC%	c                $   \         R  4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \	        XP
                  4      pV P                  RV4       V P                  RV4       R#   + '       g   i     LK; i)c                      R ^,           # rv   r!   r!   r'   r$   r   <TestErrorMessages.test_concrete_template_source.<locals>.foo   s    7Nr'   NzOverload of function 'add'	No match.r   r*   r   r+   r-   r.   r,   r/   r   r1   r   s   &   r$   test_concrete_template_source/TestErrorMessages.test_concrete_template_source   ss    		 
	 v1122fE 3 V%%&2F; 	k6* 32s   A??B	c                    \         R  4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \	        XP
                  4      pV P                  RV4       R#   + '       g   i     L9; i)c                      \        ^4      # rA   )lenr!   r'   r$   r   <TestErrorMessages.test_abstract_template_source.<locals>.foo  s    q6Mr'   NzOverload of function 'len'r   r   s   &   r$   test_abstract_template_source/TestErrorMessages.test_abstract_template_source   sc    		 
	 v1122fE 3 V%%&2F;	 32rJ   c                    \         R  4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \	        XP
                  4      pV P                  RV4       R#   + '       g   i     L9; i)c                  .    \         P                  ! R 4      # r    )rD   angler!   r'   r$   r   <TestErrorMessages.test_callable_template_source.<locals>.foo  s    88D>!r'   Nz6No implementation of function Function(<function angler   r   s   &   r$   test_callable_template_source/TestErrorMessages.test_callable_template_source  sf    		" 
	" v1122fE 3 V%%&N		 32rJ   c                  a R  o\        S4      R 4       p\        V3R l4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  RV4       \        P                  P                  RRR4      pRV R	2pV P                  VP                  V4      V4       V P                  R
V4       R#   + '       g   i     L; i)c                     R # r    r!   rP   s   &r$   barDTestErrorMessages.test_overloadfunction_template_source.<locals>.bar  r   r'   c                     R # r    r!   rP   s   &r$   ol_barGTestErrorMessages.test_overloadfunction_template_source.<locals>.ol_bar      r'   c                     < S ! ^4      # r   r!   )r   s   r$   r   DTestErrorMessages.test_overloadfunction_template_source.<locals>.foo"  s    q6Mr'   Nz
<numerous>r   testsztest_errorhandling.pyz"Overload of function 'bar': File: r   r   )r   r   r*   r   r+   r-   r.   assertNotInr   r   r   r,   r   )r/   r   r   r1   r   r   expected_olr   s   &      @r$   %test_overloadfunction_template_source7TestErrorMessages.test_overloadfunction_template_source  s    	 
#	 
	 
	 
	 v1122fE 3 V%%& 	v.Wg%<>:=/Kk((7@k6* 32s   CC/	c                  aaa R oRo\         VV3R l4       o\        V3R l4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  \        R,          P                  4       ^ ,          V4       V P                  SV4       V P                  SV4       V P                  RV4       R#   + '       g   i     L; i)zx must be literalzarray.ndim must be 1c                    < \        V\        P                  4      '       g   \        P                  ! S4      hVP
                  ^8w  d   \        P                  ! S4      h\        P                  ! W4      pR pW43# )rA   c                     R # r    r!   )contextbuilder	signatureargss   &&&&r$   codegenSTestErrorMessages.test_intrinsic_template_source.<locals>.myintrin.<locals>.codegenB      r'   )
isinstancer   IntegerLiteralr   RequireLiteralValuendimr   intp)	typingctxr"   arrsigr   given_reason1given_reason2s   &&&  r$   myintrinBTestErrorMessages.test_intrinsic_template_source.<locals>.myintrin8  s^    a!5!56600??xx1},,];;**Q$C<r'   c                  F   < \         P                  ! R4      p S! ^V 4       R# )rB   N)rB   rB   )rD   zeros)r  r  s    r$   call_intrinETestErrorMessages.test_intrinsic_template_source.<locals>.call_intrinF  s    ((6"CQr'   Nr   zIntrinsic in function)
r   r   r*   r   r+   r-   r.   r,   r   r   )r/   r  r1   r   r	  r
  r  s   &   @@@r$   test_intrinsic_template_source0TestErrorMessages.test_intrinsic_template_source3  s    +.		  
	  
	 
	 v1122fM 3 V%%&m$45@@B1EvNmV,mV,-v6 32s   CC-	c                @   \        \        P                  R 4      R 4       p\        R 4       pV P	                  \
        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     L9; i)
isnonsensec                     R # r    r!   r/   s   &r$   ol_unicode_isnonsenseTTestErrorMessages.test_overloadmethod_template_source.<locals>.ol_unicode_isnonsenseW  r   r'   c                  &    R P                  4        R# abcNr  r!   r'   r$   r   BTestErrorMessages.test_overloadmethod_template_source.<locals>.foo[  s    r'   N,Overload of function 'ol_unicode_isnonsense')
r	   r   UnicodeTyper   r*   r   r+   r-   r.   r,   r/   r  r   r1   r   s   &    r$   #test_overloadmethod_template_source5TestErrorMessages.test_overloadmethod_template_sourceT  s     
**L	9	 
:	 
	 
	 v1122fE 3 V%%&DfM	 32   BB	c                @   \        \        P                  R 4      R 4       p\        R 4       pV P	                  \
        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     L9; i)r  c                     R # r    r!   r  s   &r$   r  WTestErrorMessages.test_overloadattribute_template_source.<locals>.ol_unicode_isnonsenseh  r   r'   c                      R P                    R# r  r  r!   r'   r$   r   ETestErrorMessages.test_overloadattribute_template_source.<locals>.fool  s    r'   Nr  )
r
   r   r  r   r*   r   r+   r-   r.   r,   r   s   &    r$   &test_overloadattribute_template_source8TestErrorMessages.test_overloadattribute_template_sourcee  s     
E--|	<	 
=	 
	 
	 v1122fE 3 V%%&DfM	 32r#  c                  a ^ RI Ho \        V3R l4       pV P                  \        P
                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     L9; i)ru   c_cosc                     < S ! R 4       R# rV   Nr!   r,  s   r$   r   MTestErrorMessages.test_external_function_pointer_template_source.<locals>.fooy  s
    #Jr'   N.Type Restricted Function in function 'unknown')	numba.tests.ctypes_usecasesr-  r   r*   r   r+   r-   r.   r,   )r/   r   r1   r   r-  s   &   @r$   .test_external_function_pointer_template_source@TestErrorMessages.test_external_function_pointer_template_sourcev  sg    5		 
	 v1122fE 3 V%%&FO	 32s   A77B	c                L  a ^ RI Hp VP                  4        VP                  o\        V3R l4       pV P                  \        P                  4      ;_uu_ 4       pV! 4        RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     L9; i)ru   )cffi_usecasesc                     < S ! R 4       R# r/  r!   )r(   s   r$   r   ITestErrorMessages.test_cffi_function_pointer_template_source.<locals>.foo  s
    Ir'   Nr1  )numba.testsr6  initcffi_cosr   r*   r   r+   r-   r.   r,   )r/   modr   r1   r   r(   s   &    @r$   *test_cffi_function_pointer_template_source<TestErrorMessages.test_cffi_function_pointer_template_source  sy    4
||		 
	 v1122fE 3 V%%&FO	 32s   BB#	c                   \         P                   ! R  R\        P                  4      4       p ! R R\         P                  4      p\         P
                  ! W!RR.4       V P                  \        P                  4      ;_uu_ 4       pV! ^^R7       RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     L9; i)	c                       ] tR tRtRtR# );TestErrorMessages.test_missing_source.<locals>.ParticleTypei  r!   N)r5   r6   r7   r8   r9   r!   r'   r$   ParticleTyperA    s    r'   rB  c                   &   a  ] tR tRt o R tRtV tR# )7TestErrorMessages.test_missing_source.<locals>.Particlei  c                @    \         P                  P                  W4      # r    )r   StructRefProxy__new__)clsposmasss   &&&r$   rG  ?TestErrorMessages.test_missing_source.<locals>.Particle.__new__  s     //77AAr'   r!   N)r5   r6   r7   r8   rG  r9   r:   r;   s   @r$   ParticlerD    s     B Br'   rL  rI  rJ  )rI  rJ  Nz#missing a required argument: 'mass')r   registerr   	StructRefrF  define_proxyr*   r   r+   r-   r.   r,   )r/   rB  rL  r1   r   s   &    r$   test_missing_source%TestErrorMessages.test_missing_source  s    				5?? 	 
		By// 	B
 	xvGv1122f# 3 V%%&;VD	 32s   CC	r!   N)r5   r6   r7   r8   r   r   r   r   r   r   r   r   r  r!  r)  r3  r   r=  rP  r9   r:   r;   s   @r$   r   r      sq     ,,*& > >$+ 
<+47BN"N"P P PE Er'   r   c                   &   a  ] tR tRt o R tRtV tR# )"TestDeveloperSpecificErrorMessagesi  c           	     b   R  p\        R^4      ;_uu_ 4        V P                  \        P                  4      ;_uu_ 4       p\	        R4      ! V4       RRR4       RRR4       \        XP                  4      pV P                  RV4       R#   + '       g   i     LA; i  + '       g   i     LL; i)c                 (    V P                  R4       R# )rA   N)maxrP   s   &r$   r   PTestDeveloperSpecificErrorMessages.test_bound_function_error_string.<locals>.foo  s    EE"Ir'   DEVELOPER_MODEzvoid(int64[:,:])Nztoo many positional arguments)r   r*   r   r+   r   r-   r.   r,   r   s   &   r$    test_bound_function_error_stringCTestDeveloperSpecificErrorMessages.test_bound_function_error_string  s{    	 -q11""6#5#566&'(- 7 2 V%%&5v>	 76 21s#   (B B	BBBB.	r!   N)r5   r6   r7   r8   rZ  r9   r:   r;   s   @r$   rS  rS    s     
? 
?r'   rS  c                   *   a  ] tR tRt o RtR tRtV tR# )TestCapturedErrorHandlingi  z-Checks that the way errors are captured.
    c           	       a R  o\        S4      R 4       p\        P                  ! 4       ;_uu_ 4        \        P                  ! R\        P
                  4       V P                  \        4      ;_uu_ 4       p\        R4      V3R l4       pRRR4       RpV P                  V\        XP                  4      4       RRR4       R#   + '       g   i     LA; i  + '       g   i     R# ; i)c                     R # r    r!   rP   s   &r$   r   =TestCapturedErrorHandling.test_error_in_overload.<locals>.bar  r   r'   c                 $    V P                    R  pV# )c                     R # r    r!   rP   s   &r$   implNTestCapturedErrorHandling.test_error_in_overload.<locals>.ol_bar.<locals>.impl  r   r'   )some_invalid_attr)r"   rc  s   & r$   r   @TestCapturedErrorHandling.test_error_in_overload.<locals>.ol_bar  s    Kr'   ignorezvoid(int64)c                    < S! V 4       R # r    r!   )r"   r   s   &r$   r   =TestCapturedErrorHandling.test_error_in_overload.<locals>.foo  s
    Fr'   Nz+object has no attribute 'some_invalid_attr')r   warningscatch_warningssimplefilterr   NumbaPendingDeprecationWarningr*   AttributeErrorr   r,   r-   r.   )r/   r   r1   r   r2   r   s   &    @r$   test_error_in_overload0TestCapturedErrorHandling.test_error_in_overload  s    	 
#	 
	 $$&&!!("("G"GI "">22fm$ % 3 EHMM(C(8(8$9: '&
 32 '&&s$   AC6C	/CCCC(	r!   N)r5   r6   r7   r8   __doc__ro  r9   r:   r;   s   @r$   r]  r]    s     ; ;r'   r]  c                   0   a  ] tR tRt o RtR tR tRtV tR# )TestCurlyBracesInPathsi  zM
Test that error messages handle file paths with curly braces (issue #10094)
c                j    R pRp\         P                  ! W!3/ 4      pRV 2pV P                  W44       R# )z5C:\\Users\\{fa977bf3384160bce9243175b380be8}\\file.pyzError at {0}z	Error at Nr   _format_msgassertEqual)r/   problematic_pathfmtresultr2   s   &    r$   &test_placeholders_with_positional_args=TestCurlyBracesInPaths.test_placeholders_with_positional_args  sD     	
 ##C)<bA/01*r'   c                p    R pRV 2p\         P                  ! VR/ 4      pRV 2pV P                  W44       R# )z{abc123}zPass Nr!   ru  )r/   name_with_bracesry  rz  r2   s   &    r$    test_preformatted_string_no_args7TestCurlyBracesInPaths.test_preformatted_string_no_args  sH     &&'(##CR0+,-*r'   r!   N)	r5   r6   r7   r8   rq  r{  r  r9   r:   r;   s   @r$   rs  rs    s     +	+ 	+r'   rs  __main__)3rq  numpyrD   r   rj  r   r   r   r   
numba.corer   numba.experimentalr   numba.extendingr   r   r	   r
   numba.core.compilerr   numba.core.untyped_passesr   r   r   numba.core.typed_passesr   r   r   r   numba.core.compiler_machineryr   numba.core.types.functionsr   r   numba.tests.supportr   r   r   r   r   r   unittestr   r>   rL   r   rS  r]  rs  r5   mainr!   r'   r$   <module>r     s     	  " "  (1 1 ,6 6F F 5 D> > ;h&7&7 ;&7x00 7q7H-- q7hrE)) rEj?h6G6G ?;X ;<+X.. +@ zMMO r'   