+
    ;i,                         ^ RI t ^ RIt^ RIt^ RIHt ^ RIt^ RIt ^ RItRt ^ RI
t
Rt ! R R]P                  4      t]R8X  d   ]P                  ! 4        R# R#   ]	 d    Rt LCi ; i  ]	 d    Rt LKi ; i)    N)cudaTFc                   D  a  ] tR t^t o RtRR/R ltR tR tR tR t	R	 t
R
 tR t]P                  ! ]P                   ! 4       '       * R4      R 4       tR tR tR tR tR tR t]P0                  ! ]R4      R 4       t]P0                  ! ]R4      R 4       tR tRtV tR# )TestCasezThese test cases are meant to test the Numba test infrastructure itself.
Therefore, the logic used here shouldn't use numba.testing, but only the
upstream unittest, and run the numba test suite only in a subprocess.subp_kwargsNc               ,   T;'       g    / p\         P                  RRR.\        V4      ,           p\        P                  ! V3/ VB pVP                  R4      P                  4       pV Uu. uF  qfP                  4       '       g   K  VNK  	  ppV# u upi )zH
Use `subp_kwargs` to pass extra argument to `subprocess.check_output`.
z-mznumba.runtestsz-lUTF-8)sys
executablelist
subprocesscheck_outputdecode
splitlinesstrip)selfargsr   cmd	out_byteslineslines   &&$    W/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_runtests.pyget_testsuite_listingTestCase.get_testsuite_listing   s     "''R~~t%5t<tDzI++C?;?	  )446"'8%$::<%8 9s   +BBc                    V P                  V.4      pVR R  F6  pRP                  W14      pV P                  VP                  V4      VR7       K8  	  R # )Nz{!r} not startswith {!r})msg)r   format
assertTrue
startswith)r   prefixlistinglnerrmsgs   &&   r   check_listing_prefixTestCase.check_listing_prefix(   sM    ,,fX6#2,B/66rBFOOBMM&1vO>     c                ,   V P                  V4      pVR,          pV P                  RV9   4       \        VP                  R4      ^ ,          4      pV P	                  \        V4      \        V^,           V^,           4      4       V P                  WR4       V# )zB
Check that the reported numbers of tests are at least *minsize*.
tests found r   )r   r   intsplitassertInlenrangeassertGreaterEqual)r   r   minsizer   	last_linenumbers   &&&   r   check_testsuite_sizeTestCase.check_testsuite_size.   s|     **40"I	23Y__S)!,- 	c%j%
FRK"@A0r&   c                N   V P                  VR 4      pT P                  \        ;QJ d    R V 4       F  '       g   K   RM	  RM! R V 4       4      4       T P                  \        ;QJ d(    R V 4       F  '       g   K   R4       R# 	  R4       R# ! R V 4       4      4       R# )i  c              3   ,   "   T F
  pR V9   x  K  	  R# 5i)znumba.cuda.tests.N .0r   s   & r   	<genexpr>%TestCase.check_all.<locals>.<genexpr>?   s     JED/47E   TFc              3   ,   "   T F
  pR V9   x  K  	  R# 5i)znumba.tests.npyufunc.test_Nr7   r8   s   & r   r:   r;   A   s      /(- 9D@(-r<   N)r3   r   any)r   idsr   s   && r   	check_allTestCase.check_all<   s|    ))#t4JEJJEJJK /(-/ 	1 	1 /(-/ / 	1r&   c                    \        R V4      # )ztreturns a filter on strings starting with 'numba.', useful for
selecting the 'numba' test names from a test listing.c                 $    V P                  R 4      # )znumba.)r   )xs   &r   <lambda>8TestCase._get_numba_tests_from_listing.<locals>.<lambda>G   s    X 6r&   )filter)r   r!   s   &&r   _get_numba_tests_from_listing&TestCase._get_numba_tests_from_listingD   s     6@@r&   c                (    V P                  . 4       R # )Nr@   r   s   &r   test_defaultTestCase.test_defaultI   s    rr&   c                *    V P                  R .4       R# )numba.testsNrK   rL   s   &r   test_allTestCase.test_allL   s    'r&   c                j    \         P                  ! 4       '       d   ^dM^pV P                  R.V4       R# )d   znumba.cuda.testsN)r   is_availabler3   )r   r0   s   & r   	test_cudaTestCase.test_cudaO   s-     **,,#!!!#5"6@r&   zNO CUDAc                    V P                  R 4       V P                  R4       V P                  R4       V P                  R4       R# )znumba.cuda.tests.cudadrvznumba.cuda.tests.cudapyznumba.cuda.tests.nocudaznumba.cuda.tests.cudasimN)r$   rL   s   &r   test_cuda_submodulesTestCase.test_cuda_submodulesU   s>    !!"<=!!";<!!";<!!"<=r&   c                z    V P                  R .^4       V P                  R.^
4       V P                  RR .^4       R# )znumba.tests.test_storesliceznumba.tests.test_nested_callsNr3   rL   s   &r   test_moduleTestCase.test_module\   sH    !!#@"A1E!!#B"CRH!!#B#@#BCE	Gr&   c                ,    V P                  R .^24       R# )numba.tests.npyufuncNr\   rL   s   &r   test_subpackageTestCase.test_subpackagec   s    !!#9":B?r&   c                .    V P                  . RO^4       R# )--randomN)rd   z0.1r`   r\   rL   s   &r   test_randomTestCase.test_randomf   s    !!7	<r&   c                  a  V 3R  lpRR.pV! R.4      pV Fk  pV! RVR.4      pV! RVR.4      pS P                  W5V,           4       V! RV,          R.4      pV! RV,          R.4      pS P                  W5V,           4       Km  	  R# )	c                    < SP                  V 4      pSP                  R VR,          4       \        VR,          P                  4       ^ ,          4      pSP	                  V^ 8  4       V# )r(   r   )r   r,   r*   r+   r   )arg_listr   countr   s   &  r   	get_count5TestCase.test_include_exclude_tags.<locals>.get_countk   sT    ..x8EMM-r3b	)!,-EOOEAI&Lr&   long_runningzlong_running, importantrP   z--tagsz--exclude-tagsz	--tags=%sz--exclude-tags=%sN)assertEqual)r   rk   tagstotaltagincludedexcludeds   f      r   test_include_exclude_tags"TestCase.test_include_exclude_tagsj   s    	  9:=/*C (C!?@H "2C!GHHUx$78 !+"3]!CDH "5";]!KLHUx$78 r&   c                (   V P                  . 4      pV P                  R R.4      pV P                  R R.4      p\        V P                  V4      4      p\        V P                  V4      4      p\        V P                  V4      4      pV P                  \	        \        V4      \        V4      ,
          4      \        V4      ^,          4       V P                  \        V4      \        V4      4       V P                  \        V4      \        V4      4       R# )-jz0:2z1:2N)r   setrH   
assertLessabsr-   )r   tmpAlltmp1tmp2lAlll1l2s   &      r   test_check_shardTestCase.test_check_shard   s    ++B/))4-8))4-8455f=>33D9:33D9: 	CGc"g-.D	B?BT+BT+r&   c                   \        4       p\        ^4       FI  pV P                  RRP                  V4      .4      p. V P	                  V4      OpVP                  V4       KK  	  V P                  RR.4      p\        V P	                  V4      4      pV P                  \        V4      ^4       V Uu. uF  p\        V4      NK  	  pp\        \        V4      4       F3  pV P                  \        W,          4      \        W,          4      4       K5  	  V F?  p	V F6  p
V P                  W4       V	P                  V
4       V P                  W4       K8  	  KA  	  \        P                  ! V^4       F  w  rV P                  W,          4       K  	  \        4       pV F  pVP!                  V4       K  	  VP!                  V4       \        V P	                  V P                  . 4      4      4      pV P                  W4       R# u upi )   rw   z{}:3z--tagalways_testN)r   r.   r   r   rH   appendrx   r/   r-   rn   r,   removeassertNotIn	itertoolscombinationsassertFalseupdate)r   shardedisubsetslisttmpalways_runningrD   sharded_setsshardtestabsum_of_partsfull_listings   &              r   test_check_sharding_equivalent'TestCase.test_check_sharding_equivalent   s   &qA//v}}Q7G0HIFAd88@AENN5!  (('=)ABT??DE 	N 3Q7 )001A0s7|$AS13wz?C %
 "E&d*T"  - ' " **<;DAQU# < uA" N+4==&&r*, - 	47 1s   /G=zRequires gitpythonc                *    \         P                  ! R \         P                  \         P                  R7       V P                  R.4      pV P                  RV4       V P                  R.4      pV P                  RV4       \        \         P                  R7      pV P                  \         P                  4      ;_uu_ 4        V P                  R.VR7       R	R	R	4       R	#   \         d    T P	                  R4        Li ; i  + '       g   i     R	# ; i)
gitstdoutstderrzno git availablez-gzGit diff by common ancestorz-g=ancestor)r   z	-g=ancest)r   N)r   callDEVNULLFileNotFoundErrorskipTestr   r   r,   dictassertRaisesCalledProcessError)r   outsr   s   &  r   test_gitdiffTestCase.test_gitdiff   s    	.OOE#-#5#5#-#5#57 ))4&16=))=/:3T:*"4"45z<<==&&}+&N >= ! 	.MM,-	. >==s   5C  DC>=C>D	zRequires pyyamlc                   ^ RI Hp \        P                  P	                  \        P                  P                  \        4      4      p\        P                  P                  VRRR4      p\        P                  P                  V4      '       g   V P                  R4       \        \        P                  P                  V4      R4      ;_uu_ 4       pVP                  4       pRRR4       \         P                  ! XVR7      pVR,          p. pV^ ,          p	V	R,          R	,          p
V
P                  4        F  pVP                  VR
,          4       K  	  . ROp\        P                  P                  ! V.VO5!  p\        P                  P                  V4      '       g   V P                  R4       \        \        P                  P                  V4      R4      ;_uu_ 4       pVP                  4       pRRR4       \         P                  ! WQR7      pVR,          ^ ,          R,          R	,          p
V
P                  4        F  pVP                  VR
,          4       K  	  V P                  \!        V4      \!        \#        V4      4      4       \%        V4      ^,           p. \'        V4      OpV P                  \)        V4      V4       V P                  WR,          R,          4       R#   + '       g   i     EL; i  + '       g   i     EL; i)r   )Loader..zazure-pipelines.ymlz&'azure-pipelines.yml' is not availablertNjobs
parametersmatrixTEST_START_INDEXz$'azure-windows.yml' is not availablestrategy	variables
TEST_COUNT)r   r   buildscriptsazurezazure-windows.yml)yamlr   ospathdirnameabspath__file__joinisfiler   openreadloadvaluesr   rn   r-   rx   maxr.   sorted)r   r   	base_path
azure_pipefdatapipe_yml	templatesstart_indexestmpltr   setupwinpathazure_windowswindows_ymllim_start_indexexpecteds   &                r   test_azure_configTestCase.test_azure_config   s!   GGOOBGGOOH$=>	WW\\)T49NO
ww~~j))MMBC"''//*-t44668D 599T&1V$	!|$X.]]_E  '9!:; % MY99ww~~m,,MM@A"''//-0$771668D 8ii4 V$Q'
3H=]]_E  '9!:; %
 	]+S]1C-DEm,q0,U?+,.9;*?*MNG 544" 877s   K&!K:&K7	:L	c                :   R pV P                  \        P                  4      ;_uu_ 4       p\        P                  RVP                  R4      .p\        P                  ! V\        P                  ^<R7       RRR4       V P                  RXP                  P                  P                  R4      4       \        P                  RVP                  R4      .p\        P                  ! V\        P                  \        P                  R7       R#   + '       g   i     L; i)	aJ  if 1:
        from unittest import mock
        from llvmlite import binding as llvm
        error = RuntimeError("Detected compilation during test listing")
        with mock.patch.object(llvm.ExecutionEngine, 'finalize_object',
                               side_effect=error):
            import numba
            {0}
        z-cznumba.njit(lambda:0)())r   timeoutNz(Detected compilation during test listingr   znumba.test('-l')r   )r   r   r   r	   r
   r   r   STDOUTr,   	exceptionr   r   
check_callr   )r   coderaisesr   s   &   r   test_no_compilation_on_list$TestCase.test_no_compilation_on_list   s     z<<==>>45M)NOC##C+5+<+<,.0 >
 	@&&--44W=	?
 ~~tT[[1C%DEc%/%7%7%/%7%7	: >=s   A
D

D	r7   ) __name__
__module____qualname____firstlineno____doc__r   r$   r3   r@   rH   rM   rQ   rV   unittestskipIfr   rU   rY   r]   ra   re   rt   r   r   
skipUnlesshas_gitpythonr   
has_pyyamlr   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     M	 	?1A
(A __**,,i8> 9>G@<9,,+5Z (<=O >O( %67)O 8)OV: :r&   r   __main__)r   r	   r   numbar   r   r   r   r   ImportErrorr   r   r   r   mainr7   r&   r   <module>r      s    	 
     M J@:x   @:F zMMO a  M  Js"   A A) 	A&%A&)	A54A5