Ë
    èÿæi6
  ã                   ó–   — d dl Z d dlZd dlmZmZ d dlmZmZ d dlZ G d„ de«      Z G d„ de«      Z	e
dk(  r ej                  «        yy)	é    N)ÚjitÚnjit)ÚTestCaseÚalways_testc                   ó&   — e Zd ZdZd„ Zed„ «       Zy)ÚTestNumbaModulez@
    Test the APIs exposed by the top-level `numba` module.
    c                 ó„   — | j                  t        t        |«      |«       | j                  |t        j                  «       y ©N)Ú
assertTrueÚhasattrÚnumbaÚassertInÚ__all__)ÚselfÚnames     úi/Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/numba/tests/test_api.pyÚcheck_memberzTestNumbaModule.check_member   s)   € Ø�‰œ¤ tÓ,¨dÔ3Ø�‰�dœEŸM™MÕ*ó    c                 ó  — | j                  d«       | j                  d«       | j                  d«       | j                  d«       | j                  d«       | j                  d«       | j                  d«       t        j                   y )Nr   Ú	vectorizeÚguvectorizer   Ú
NumbaErrorÚTypingErrorÚint32)r   r   Ú__version__)r   s    r   Útest_numba_modulez!TestNumbaModule.test_numba_module   so   € ð 	×Ñ˜%Ô Ø×Ñ˜+Ô&Ø×Ñ˜-Ô(Ø×Ñ˜&Ô!à×Ñ˜,Ô'Ø×Ñ˜-Ô(à×Ñ˜'Ô"ä×Ór   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r   
   s    „ ñò+ð ñó ñr   r   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚTestJitDecoratorz*
    Test the jit and njit decorators
    c                 ó¾  — | j                  t        «      5 }t        dd¬«       d d d «       | j                  dt	        j
                  «      «       d„ } t        d¬«      |«      } |d«       | j                  t        |j                  «      d«        t        d¬«      |«      } |d«       | j                  t        |j                  «      d«       y # 1 sw Y   Œ°xY w)	NT)ÚnopythonÚforceobjz1Only one of 'nopython' or 'forceobj' can be True.c                 ó   — | S r
   r!   ©Úxs    r   Úpy_funcz<TestJitDecorator.test_jit_nopython_forceobj.<locals>.py_func/   ó   € ØˆHr   ©r%   é   ©r&   r   )	ÚassertRaisesÚ
ValueErrorr   r   ÚstrÚ	exceptionÚassertEqualÚlenÚnopython_signatures)r   Úcmr*   Újit_funcs       r   Útest_jit_nopython_forceobjz+TestJitDecorator.test_jit_nopython_forceobj'   s´   € Ø×ÑœzÔ*¨bÜ˜¨Õ-÷ +à�‰Ø?Ü�—‘Óô	
ò
	ð &”3 Ô% gÓ.ˆÙ�Œð 	×Ñœ˜X×9Ñ9Ó:¸AÔ>à%”3 Ô% gÓ.ˆÙ�ŒØ×Ñœ˜X×9Ñ9Ó:¸AÕ>÷% +Ð*ús   –CÃCc                 óX  — t        j                  d¬«      5 }t        j                  dt        «       t	        d¬«       d d d «       | j                  t        «      d«       | j                  dt        |d   j                  «      «       t        j                  d¬«      5 }t        j                  dt        «       t	        d¬«       d d d «       | j                  t        |«      d«       | j                  d	t        |d   j                  «      «       d
„ } t	        d¬«      |«      } |d«       | j                  t        |j                  «      d«        t	        d¬«      |«      } |d«       | j                  t        |j                  «      d«       y # 1 sw Y   �ŒWxY w# 1 sw Y   ŒÛxY w)NT)ÚrecordÚalwaysr.   r-   z'forceobj is set for njit and is ignoredr   r,   z'nopython is set for njit and is ignoredc                 ó   — | S r
   r!   r(   s    r   r*   z=TestJitDecorator.test_njit_nopython_forceobj.<locals>.py_funcM   r+   r   )ÚwarningsÚcatch_warningsÚsimplefilterÚRuntimeWarningr   r3   r4   r   r1   Úmessager5   )r   Úwr*   r7   s       r   Útest_njit_nopython_forceobjz,TestJitDecorator.test_njit_nopython_forceobj<   sE  € Ü×$Ñ$¨DÕ1°QÜ×!Ñ! (¬NÔ;Ü˜$Õ÷ 2ð 	×Ñœ˜Q› Ô#Ø�‰Ø5´s¸1¸Q¹4¿<¹<Ó7Hô	
ô ×$Ñ$¨DÕ1°QÜ×!Ñ! (¬NÔ;Ü˜$Õ÷ 2ð 	×Ñœ˜Q› Ô#Ø�‰Ø5´s¸1¸Q¹4¿<¹<Ó7Hô	
ò	ð '”4 Ô& wÓ/ˆÙ�ŒØ×Ñœ˜X×9Ñ9Ó:¸AÔ>à&”4 Ô& wÓ/ˆÙ�Œà×Ñœ˜X×9Ñ9Ó:¸AÕ>÷5 2Ñ1ú÷ 2Ð1ús   —'FÂ'F ÆFÆ F)N)r   r   r   r    r8   rC   r!   r   r   r#   r#   #   s   „ ñò?ó*?r   r#   Ú__main__)r=   r   r   r   Únumba.tests.supportr   r   Úunittestr   r#   r   Úmainr!   r   r   Ú<module>rH      sG   ðÛ ã ß ç 5Û ô�hô ô24?�xô 4?ðn ˆzÒØ€H‡M�M…Oð r   