+
     þÎj`>  ã                   ó(  € 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   &€ÚT/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_errorhandling.pyÚinnerÚmTestErrorHandlingBeforeLowering.test_unsupported_make_function_return_inner_func.<locals>.func.<locals>.inner#   s   ø€ Ø˜1•u�ó    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_funcÚPTestErrorHandlingBeforeLowering.test_unsupported_make_function_return_inner_func   sh   € ò	ô œT›	ˆHØ×"Ñ"¤6×#5Ñ#5×6Ô6¸&Ù˜”˜qÔ!÷ 7ð ?ˆHØ�M‰M˜(¤C¨×(8Ñ(8Ó$9Ö:ó "ß6×6ús   º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   € ä�MŠMš'Ö"r'   Nz4Use of unsupported NumPy function 'numpy.asanyarray'©r   r*   r   r+   r,   r-   r.   )r/   r(   r1   r2   s   &   r$   Útest_unsupported_numpy_functionÚ8TestUnsupportedReporting.test_unsupported_numpy_function1   sc   € ä	ñ	#ó 
ð	#ð ×Ñœv×1Ñ1×2Ô2°fÙŒ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$   ÚfnÚHTestMiscErrorHandling.test_use_of_exception_for_flow_control.<locals>.fnE   s   € à�q•5ˆLr'   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   € ô
 
ñ	ó 
ð	ô �HŠH�c�U¤§¡Ô,ˆÙ
ˆ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_definitionÚHTestMiscErrorHandling.test_commented_func_definition_is_not_a_definitionL   sZ   € ò	+ò	+ð #Ó2ˆDØ×"Ñ"¤9×-Ô-°Ù”÷ .ð �M‰M˜-¬¨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_pipelinesÚWTestMiscErrorHandling.test_use_of_ir_unknown_loc.<locals>.TestPipeline.define_pipelinesc   sŒ   € Ø)�Ü  Ó&�Ø—‘Ô-Ð/CÔDØ—‘œI }Ô5Ø—‘œL¨/Ô:ð —‘Ô/°Ô7à—‘Ô1Ð3FÔ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_locÚ0TestMiscErrorHandling.test_use_of_ir_unknown_loc`   s   € ô	œ<ô 	ô" 
˜\Ô	*ñ	ó 
+ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒd�A�a�5‹kŒN÷ 3ð 6ˆØ�‰�h¤ F×$4Ñ$4Ó 5Ö6÷	 3×2ús   Á	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Ô2°fÙŒF÷ 3ð #Ð$MÐNˆÛˆBØ�M‰M˜"œc &×"2Ñ"2Ó3Ö4ó ÷	 3×2ús   ¨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_globalÚATestMiscErrorHandling.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$   ÚfooÚPTestMiscErrorHandling.test_handling_forgotten_numba_internal_import.<locals>.foo�   s   € ä˜B–Z�Ùó  r'   NzC'prange' looks like a Numba internal function, has it been importedrG   )r/   rŽ   r1   r2   s   &   r$   Ú-test_handling_forgotten_numba_internal_importÚCTestMiscErrorHandling.test_handling_forgotten_numba_internal_import�   sg   € ä	�tÔ	ñ	ó 
ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3ð+ˆà�‰�h¤ F×$4Ñ$4Ó 5Ö6÷ 3×2ús   º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   é € Ð"™	�1ŒQ›	ù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_expressionÚDTestMiscErrorHandling.test_handling_unsupported_generator_expression›   sj   € ò	#ð Cˆä Ô%¤tÓ+ˆCØ×"Ñ"¤6×#:Ñ#:×;Ô;¸vÙ�C””
÷ <à�M‰M˜(¤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_variableÚ6TestMiscErrorHandling.test_handling_undefined_variable¦   s`   € Ü	ñ	ó 
ð	ð 8ˆà×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3à�‰�h¤ F×$4Ñ$4Ó 5Ö6÷ 3×2ús   ¶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_fooÚ5TestErrorMessages.test_specific_error.<locals>.ol_foo»   s   ø€ ä×(Ò(¨Ó6Ð6r'   c                  ó   <€ S ! 4        R # r    r!   ©rŽ   s   €r$   Úcall_fooÚ7TestErrorMessages.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Ô2°fÙŒJ÷ 3ô �V×%Ñ%Ó&ˆØ�‰”mÐ$4Õ5×@Ñ@ÓBÀ1ÕEÀvÔNØ�‰�l FÖ+÷ 3×2ús   Á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Ô2°fÙŒJ÷ 3ô �V×%Ñ%Ó&ˆØ�‰�j &Ö)÷	 3×2ús   Á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)	z—Checks 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   € ä�I‰I�M‰M˜'Ö"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_correctÚ7TestErrorMessages.test_error_function_source_is_correctÝ   s³   € ô 
ñ	#ó 
ð	#ð ×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰”mÐ$4Õ5×@Ñ@ÓBÀ1ÕEÀvÔNÜŸ™Ÿ™ W¨d°KÓ@ˆØ<¸]¸OÈ1ÐMˆØ�‰�h—o‘o mÓ4°fÖ=÷ 3×2ús   ´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   € à˜•7ˆNr'   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Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆà�‰Ð2°FÔ;ð 	�‰�k 6Ö*÷ 3×2ús   ´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   € ä�q“6ˆMr'   NzOverload of function 'len'r×   rØ   s   &   r$   Útest_abstract_template_sourceÚ/TestErrorMessages.test_abstract_template_source   sc   € ä	ñ	ó 
ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰Ð2°FÖ;÷	 3×2úrJ   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   € ä—8’8˜D“>Ð!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Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰ÐNØö	÷	 3×2úrJ   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$   ÚbarÚDTestErrorMessages.test_overloadfunction_template_source.<locals>.bar  rª   r'   c                 ó   € R # r    r!   rP   s   &r$   Úol_barÚGTestErrorMessages.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   ø€ á�q“6ˆMr'   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_sourceÚ7TestErrorMessages.test_overloadfunction_template_source  sÔ   ø€ ò	ô 
�#‹ñ	ó 
ð	ô 
ô	ó 
ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆð 	×Ñ˜ vÔ.ÜŸ™Ÿ™ W¨gØ%<ó>ˆà:¸=¸/ÈÐKˆØ�‰�k×(Ñ(¨Ó7¸Ô@Ø�‰�k 6Ö*÷ 3×2ús   Á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$   ÚcodegenÚSTestErrorMessages.test_intrinsic_template_source.<locals>.myintrin.<locals>.codegenB  ó   € Ùr'   )Ú
isinstancer   ÚIntegerLiteralr   ÚRequireLiteralValueÚndimr¬   Úintp)Ú	typingctxr"   ÚarrÚsigrþ   Úgiven_reason1Úgiven_reason2s   &&&  €€r$   ÚmyintrinÚBTestErrorMessages.test_intrinsic_template_source.<locals>.myintrin8  s^   ø€ ä˜a¤×!5Ñ!5×6Ò6Ü×0Ò0°Ó?Ð?à�x‰x˜1Œ}Ü×,Ò,¨]Ó;Ð;ä—*’*˜QÓ$ˆCòà�<Ðr'   c                  óF   <€ \         P                  ! R4      p S! ^V 4       R# )rB   N)rB   rB   )rD   Úzeros)r  r  s    €r$   Úcall_intrinÚETestErrorMessages.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_sourceÚ0TestErrorMessages.test_intrinsic_template_source3  sÀ   ú€ à+ˆØ.ˆä	õ	 ó 
ð	 ô 
ô	ó 
ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒM÷ 3ô �V×%Ñ%Ó&ˆØ�‰”mÐ$4Õ5×@Ñ@ÓBÀ1ÕEÀvÔNØ�‰�m VÔ,Ø�‰�m VÔ,Ø�‰Ð-¨vÖ6÷ 3×2ús   Á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_isnonsenseÚTTestErrorMessages.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_sourceÚ5TestErrorMessages.test_overloadmethod_template_sourceT  s†   € ô 
œ×*Ñ*¨LÓ	9ñ	ó 
:ð	ô 
ñ	ó 
ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰ÐDÀfÖ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_sourceÚ8TestErrorMessages.test_overloadattribute_template_sourcee  s†   € ô 
œE×-Ñ-¨|Ó	<ñ	ó 
=ð	ô 
ñ	ó 
ð	ð ×Ñœv×1Ñ1×2Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰ÐDÀfÖM÷	 3×2úr#  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Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰ÐFÈÖO÷	 3×2ús   ¾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Ô2°fÙŒE÷ 3ô �V×%Ñ%Ó&ˆØ�‰ÐFÈÖO÷	 3×2ús   Á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Ô2°fÙ˜ Õ#÷ 3ô �V×%Ñ%Ó&ˆØ�‰Ð;¸VÖD÷	 3×2ús   Â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7òB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   € Ø�E‰E�"Ž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_stringÚCTestDeveloperSpecificErrorMessages.test_bound_function_error_string©  s{   € ò	ô Ð-¨q×1Õ1Ø×"Ñ"¤6×#5Ñ#5×6Ô6¸&ÜÐ'Ô(¨Ô-÷ 7÷ 2ô �V×%Ñ%Ó&ˆØ�‰Ð5°vÖ>÷	 7×6ú÷ 2×1ús#   ˜(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$   ÚimplÚNTestCapturedErrorHandling.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_overloadÚ0TestCapturedErrorHandling.test_error_in_overloadº  sº   ø€ ò	ô 
�#‹ñ	ó 
ð	ô ×$Ò$×&Õ&ä×!Ò! (Ü"(×"GÑ"GôIð ×"Ñ"¤>×2Ô2°fÜ�mÓ$ôó %ð÷ 3ð EˆHØ�M‰M˜(¤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_argsÚ7TestCurlyBracesInPaths.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ô ;ô&7˜x×0Ñ0ô 7ôq7˜H×-Ñ-ô q7ôhrE˜×)Ñ)ô rEôj?¨°h×6GÑ6Gô ?ô; ¨Xô ;ô<+˜X×.Ñ.ô +ð@ ˆzÔØ‡M‚M†Oñ r'   