+
     þÎj\±  ã                   óv  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^ RIHt ^ RIHt ^ RIHtHtHtHtHt ^ RIH t H!t! ^ RI"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	I/H0t0  ^ RI1t1R
 t3]3! 4       t4Rt5]Pl                  ! ]4]54      t7R t8R t9R t:R t;R t<R t= ! R R]%]&4      t>R t? ! R R]&4      t@ ! R R]@4      tA ! R R]A4      tB ! R R]A4      tC ! R R]A4      tD], ! R R ]A4      4       tE ! R! R"]A4      tF ! R# R$]@4      tG]+ ! R% R&]PL                  4      4       tHR' tI ! R( R)]PL                  4      tJ ! R* R+]@4      tK ! R, R-]4      tL ! R. R/]&4      tM ! R0 R1]&4      tN]OR28X  d   ]P                   ! 4        R# R#   ]2 d    Rt1 EL#i ; i)3é    N)ÚPath)Únjit)Úcodegen)ÚUserWideCacheLocatorÚZipCacheLocatorÚFunctionCacheÚInTreeCacheLocatorÚInTreeCacheLocatorFsAgnostic)ÚNumbaWarningÚNumbaDeprecationWarning)Úparfor)
ÚSerialMixinÚTestCaseÚcapture_cache_logÚimport_dynamicÚoverride_configÚrun_in_new_process_cachingÚskip_if_typeguardÚskip_parfors_unsupportedÚtemp_directoryÚoverride_env_config)Ú
cpu_targetc                  ór  € \        R 4      p \        P                  P                  V R4      p\        P                  ! V4       \        \        P                  P                  VR4      R4      ;_uu_ 4       pVP                  R4       RRR4       \        P                  ! VR4        \        \        P                  P                  VR4      R4      ;_uu_ 4       pVP                  R4       RRR4        \        P                  ! VR	4       \        P                  ! V4       R
#   + '       g   i     L¤; i  + '       g   i     LS; i  \         d2     \        P                  ! TR	4       \        P                  ! T4       R# i ; i  \        P                  ! TR	4       \        P                  ! T4       i ; i)Ú
test_cacheÚwritable_testÚwrite_okÚwtÚcheck1Né@  Úwrite_forbiddenÚcheck2iý  FT)r   ÚosÚpathÚjoinÚmkdirÚopenÚwriteÚchmodÚshutilÚrmtreeÚPermissionError)ÚtempdirÚtest_dirÚfs      ÚN/opt/data/home/.local/lib/python3.14/site-packages/numba/tests/test_caching.pyÚcheck_access_is_preventabler0   4   s#  € ô ˜\Ó*€GÜ—‘—‘˜W oÓ6€HÜ‡H‚HˆXÔä	Œb�g‰g�l‰l˜8 ZÓ0°$×	7Ô	7¸1Ø	�‰�Ô÷ 
8ô ‡H‚HˆX�uÔð Ü”"—'‘'—,‘,˜xÐ):Ó;¸T×BÔBÀaØ�G‰G�HÔ÷ Cð ô 	�Š�˜5Ô!Ü�Š�hÖ÷% 
8×	7ú÷
 C×Bûô ô ð ä
�Š�˜5Ô!Ü�Š�hÖðûô 	�Š�˜5Ô!Ü�Š�hÕúsH   Á4D"Â&2E ÃD5Ã*E Ä"D2	Ä5E	Å E ÅFÅF ÆFÆF Æ/F6z9Cannot create a directory to which writes are preventablec                  ó    € R p \        V 4      V 3# )Úabcd)Úhash)Úcs    r/   Úconstant_unicode_cacher5   X   s   € Ø€AÜ�‹7�Aˆ:Ðó    c                  óz   € \         p \        R R7      ! V 4      pV ! 4       w  r#V! 4       w  rEW$8X  g   Q hW58X  g   Q hR# ©T©ÚcacheN)r5   r   )ÚpyfuncÚcfuncÚexp_hvÚexp_strÚgot_hvÚgot_strs         r/   Úcheck_constant_unicode_cacherA   ]   s@   € Ü#€FÜ�tÕ˜VÓ$€EÙ“h�O€FÙ“g�O€FØÔÐÐØÔÐÒr6   c                  ó   € R ^R^/# )ÚaÚb© rE   r6   r/   Ú
dict_cacherF   f   s   € Ø��C˜ÐÐr6   c                  ób   € \         p \        R R7      ! V 4      pV ! 4       pV! 4       pW#8X  g   Q hR# r8   )rF   r   ©r;   r<   ÚexpÚgots       r/   Úcheck_dict_cacherK   j   s.   € Ü€FÜ�tÕ˜VÓ$€EÙ
‹(€CÙ
‹'€CØŒ:ÐŠ:r6   c               #   ó(   "  € R F  p V x € K	  	  R# 5i)é   N)rM   é   é   rE   )Úvs    r/   Úgenerator_cacherQ   r   s   é € ÛˆØŒó ùs   ‚c                  ó†   € \         p \        R R7      ! V 4      p\        V ! 4       4      p\        V! 4       4      pW#8X  g   Q hR# r8   )rQ   r   ÚlistrH   s       r/   Úcheck_generator_cacherT   w   s6   € Ü€FÜ�tÕ˜VÓ$€EÜ
‰v‹x‹.€CÜ
‰u‹w‹-€CØŒ:ÐŠ:r6   c                   ó>   a € ] tR t^t o R tR tR tR tR tRt	V t
R# )ÚTestCachingc                ó\   € V! 4        \        V4      pV P                  VR ,          ^ 4       R# )ÚexitcodeN)r   ÚassertEqual)ÚselfÚfuncÚress   && r/   Úrun_testÚTestCaching.run_test€   s%   € ÙŒÜ(¨Ó.ˆØ×Ñ˜˜Z�¨!Ö,r6   c                ó0   € V P                  \        4       R # ©N)r]   rA   ©rZ   s   &r/   Útest_constant_unicode_cacheÚ'TestCaching.test_constant_unicode_cache…   s   € Ø�‰Ô2Ö3r6   c                ó0   € V P                  \        4       R # r`   )r]   rK   ra   s   &r/   Útest_dict_cacheÚTestCaching.test_dict_cacheˆ   s   € Ø�‰Ô&Ö'r6   c                ó0   € V P                  \        4       R # r`   )r]   rT   ra   s   &r/   Útest_generator_cacheÚ TestCaching.test_generator_cache‹   s   € Ø�‰Ô+Ö,r6   c                ój  € \        V P                  P                  4      p\        P                  ! 4       pVP                  4       pVP                  \        W1R 3R7      pVP                  4        VP                  4        VP                  4       w  rVV'       g   V P                  V4       V P                  VRR4       VP                  \        W1R3R7      pVP                  4        VP                  4        VP                  4       w  rVV'       g   V P                  V4       V P                  VRR4       R# )F©ÚtargetÚargséè  z-Omitted function returned an incorrect outputTN)r   Ú	__class__Ú__name__ÚmultiprocessingÚget_contextÚQueueÚProcessÚomitted_child_test_wrapperÚstartr$   ÚgetÚfailrY   )rZ   Ú	cache_dirÚctxÚresult_queueÚprocÚsuccessÚoutputs   &      r/   Útest_omittedÚTestCaching.test_omittedŽ   s  € ô # 4§>¡>×#:Ñ#:Ó;ˆ	Ü×)Ò)Ó+ˆØ—y‘y“{ˆØ�{‰{Ü-Ø¨5Ð1ð ó 
ˆð 	�
‰
ŒØ�	‰	ŒØ&×*Ñ*Ó,‰ˆ÷ Ø�I‰I�fÔà×ÑØØØ;ô	
ð �{‰{Ü-Ø¨4Ð0ð ó 
ˆð 	�
‰
ŒØ�	‰	ŒØ&×*Ñ*Ó,‰ˆ÷ Ø�I‰I�fÔà×ÑØØØ;ö	
r6   rE   N)rp   Ú
__module__Ú__qualname__Ú__firstlineno__r]   rb   re   rh   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r/   rV   rV      s#   ø‡ € ò-ò
4ò(ò-÷(
ð (
r6   rV   c                 ó–  € \        R V4      ;_uu_ 4        \        RR7      R
R l4       p V! 4       pV'       db   VP                  VP                  ^ ,          ,          ^8X  g   Q R4       hVP                  VP                  ^ ,          ,          ^ 8X  g   Q R4       hM`VP                  VP                  ^ ,          ,          ^8X  g   Q R4       hVP                  VP                  ^ ,          ,          ^ 8X  g   Q R4       hRpT P                  YT34       R	R	R	4       R	#    \
        P                  ! 4       pRp L7; i  + '       g   i     R	# ; i)Ú	CACHE_DIRTr9   c                 ó   € V # r`   rE   )Únums   &r/   ÚtestÚ(omitted_child_test_wrapper.<locals>.test»   s   € àˆJr6   zCache did not hit as expectedzCache has an unexpected misszCache did not miss as expectedzCache has an unexpected hitFN)rn   )r   r   Ú_cache_hitsÚ
signaturesÚ_cache_missesÚ	tracebackÚ
format_excÚput)r{   ry   Úsecond_callrŒ   r~   r}   s   &&&   r/   ru   ru   ¹   s/  € Ü	˜ i×	0Õ	0Ü	�DÔ	ó	ó 
ð	ð	Ù“VˆF÷ Ø×'Ñ'¨¯©¸Õ(:Õ;¸qÔ@ð 4Ø3ó4Ð@à×)Ñ)¨$¯/©/¸!Õ*<Õ=ÀÔBð 3Ø2ó3ÑBð ×)Ñ)¨$¯/©/¸!Õ*<Õ=ÀÔBð 5Ø4ó5ÐBà×'Ñ'¨¯©¸Õ(:Õ;¸qÔ@ð 2Ø1ó2Ð@àˆGð
 	×Ñ˜'Ð*Ô+÷1 
1Ñ	0øð*	Ü×)Ò)Ó+ˆFØŠGú÷/ 
1×	0Ð	0ús#   •D7«CDÃ=D7ÄD4Ä2D7Ä7E	c                   ób   a € ] tR t^Õt o RtRtR tR t]R 4       t	R t
R tR tR tR	 tR
tV tR# )ÚBaseCacheTestNc                óD  € \        R 4      V n        \        P                  P	                  ^ V P                  4       \
        P                  P                  V P                  V P                  R,           4      V n        \
        P                  P                  V P                  R4      V n	        \        P                  ! V P                  V P                  4       \
        P                  ! V P                  \        P                  \        P                   ,          4       RV n        R# )r   z.pyÚ__pycache__N)r   r,   Úsysr#   Úinsertr"   r$   ÚmodnameÚmodfilery   r)   ÚcopyÚusecases_filer(   ÚstatÚS_IREADÚS_IWRITEÚmaxDiffra   s   &r/   ÚsetUpÚBaseCacheTest.setUpÛ   sŸ   € Ü% lÓ3ˆŒÜ�‰�‰˜˜4Ÿ<™<Ô(Ü—w‘w—|‘| D§L¡L°$·,±,ÀÕ2FÓGˆŒÜŸ™Ÿ™ d§l¡l°MÓBˆŒÜ�Š�D×&Ñ&¨¯©Ô5Ü
�Š�—‘œtŸ|™|¬d¯m©mÕ;Ô<ØˆŽr6   c                ó¬   € \         P                  P                  V P                  R 4       \         P                  P                  V P                  4       R # r`   )r™   ÚmodulesÚpopr›   r#   Úremover,   ra   s   &r/   ÚtearDownÚBaseCacheTest.tearDownä   s,   € Ü�‰�‰˜Ÿ™ dÔ+Ü�‰�‰˜Ÿ™Ö%r6   c                óf   € \        V R R4      pVe   V# \        V RR4      pVe   VP                  # R# )Ú
__cached__NÚ__spec__)ÚgetattrÚcached)Úmoduler¯   Úspecs   &  r/   Ú_module_cached_pathÚ!BaseCacheTest._module_cached_pathè   s>   € ô
 ˜ ¨tÓ4ˆØÒØˆMÜ�v˜z¨4Ó0ˆØÒØ—;‘;ÐÙr6   c                óx  € \         P                  P                  V P                  R 4      pVe1   V P	                  V4      pV'       d    \
        P                  ! V4       \        V P                  4      pV P                  VP                  P                  R4      V P                  4       V#   \         d     LYi ; i)NÚco)r™   r¦   r§   r›   r²   r"   ÚunlinkÚFileNotFoundErrorr   rY   Ú__file__Úrstriprœ   )rZ   ÚoldÚcached_pathÚmods   &   r/   Úimport_moduleÚBaseCacheTest.import_moduleõ   s‘   € ô �k‰k�o‰o˜dŸl™l¨DÓ1ˆØŠ?à×2Ñ2°3Ó7ˆKßðÜ—I’I˜kÔ*ô ˜TŸ\™\Ó*ˆØ×Ñ˜Ÿ™×,Ñ,¨TÓ2°D·L±LÔAØˆ
øô	 )ô Ùðús   Á	B+ Â+B9Â8B9c                óÆ   €  \         P                  ! V P                  4       Uu. uF  pVP                  R4      '       d   K  VNK   	  up# u upi   \         d    . u # i ; i)ú.pyc)rÀ   z.pyo)r"   Úlistdirry   Úendswithr·   )rZ   Úfns   & r/   Úcache_contentsÚBaseCacheTest.cache_contents  s\   € ð	Ü!#§¢¨D¯N©NÔ!;ó :Ñ!;˜2ØŸ;™;Ð'7×8÷ �BÑ!;ñ :ð :ùò :øä ô 	ØŠIð	ús(   ‚"A ¤AÁAÁA ÁA ÁA ÁA c                ó\   a € \        V 3R  l\        S P                  4       4       4       4      # )c              3   ó¶   <"  € T FN  pV\         P                  P                  \         P                  P                  SP                  V4      4      3x € KP  	  R # 5ir`   )r"   r#   Úgetmtimer$   ry   )Ú.0rÃ   rZ   s   & €r/   Ú	<genexpr>Ú1BaseCacheTest.get_cache_mtimes.<locals>.<genexpr>  s?   øé € ð =Ù;˜ð œŸ™×)Ñ)¬"¯'©'¯,©,°t·~±~ÀrÓ*JÓKÕLÛ;ùs   ƒAA)ÚdictÚsortedrÄ   ra   s   fr/   Úget_cache_mtimesÚBaseCacheTest.get_cache_mtimes  s+   ø€ Üô =Ü$ T×%8Ñ%8Ó%:Ô;ó=ó =ð 	=r6   c                ó\   € V P                  4       pV P                  \        V4      W4       R # r`   )rÄ   rY   Úlen)rZ   Únr4   s   && r/   Úcheck_pycacheÚBaseCacheTest.check_pycache  s$   € Ø×ÑÓ!ˆØ×Ñœ˜Q› Ö&r6   c                ó   € R # r`   rE   ra   s   &r/   Ú
dummy_testÚBaseCacheTest.dummy_test  s   € Ùr6   )ry   r¢   rœ   r,   )rp   r�   r‚   rƒ   rž   r›   r£   r©   Ústaticmethodr²   r½   rÄ   rÎ   rÓ   rÖ   r„   r…   r†   s   @r/   r–   r–   Õ   sK   ø‡ € à€Mà€Gòò&ð ñ
ó ð
òò"ò=ò'÷ð r6   r–   c                   óª   a € ] tR tRt o ]P
                  P                  ]4      t]P
                  P                  ]R4      t
RtRR/R ltR	R ltRtV tR# )
ÚDispatcherCacheUsecasesTesti  úcache_usecases.pyÚdispatcher_caching_test_fodderÚenvvarsNc          	     ó  € Vf   / pR\        V P                  V P                  R7      ,          p\        P                  P                  4       pVP                  V4       \        P                  ! \        P                  RV.\        P                  \        P                  VR7      pVP                  4       w  rVVP                  ^ 8w  d?   \        RVP                  : RVP                  4       : RVP                  4       : R24      hR # )	Nzœif 1:
            import sys

            sys.path.insert(0, %(tempdir)r)
            mod = __import__(%(modname)r)
            mod.self_test()
            ©r,   r›   ú-c)ÚstdoutÚstderrÚenvúprocess failed with code z: 
stdout follows
z
stderr follows
Ú
)rÌ   r,   r›   r"   Úenvironr�   ÚupdateÚ
subprocessÚPopenr™   Ú
executableÚPIPEÚcommunicateÚ
returncodeÚAssertionErrorÚdecode)rZ   rÝ   ÚcodeÚsubp_envÚpopenÚoutÚerrs   &$     r/   Úrun_in_separate_processÚ3DispatcherCacheUsecasesTest.run_in_separate_process  sÍ   € ð Š?ØˆGðô ˜tŸ|™|°T·\±\ÔBõCˆô —:‘:—?‘?Ó$ˆØ�‰˜Ô Ü× Ò ¤#§.¡.°$¸Ð!=Ü(2¯©Ä
ÇÁØ%-ô/ˆð ×$Ñ$Ó&‰ˆØ×Ñ˜qÔ Ý ð ×#Ô# S§Z¡Z¦\°3·:±:¶<ðAóð ñ !r6   c                ó   € VP                   pV P                  \        VP                  P	                  4       4      W$P                  4       VeA   V P                  \        VP
                  P	                  4       4      VVP
                  4       R # R # r`   )ÚstatsrY   ÚsumÚ
cache_hitsÚvaluesÚcache_misses)rZ   r[   ÚhitsÚmissesÚsts   &&&& r/   Ú
check_hitsÚ&DispatcherCacheUsecasesTest.check_hits:  sg   € Ø�Z‰ZˆØ×Ñœ˜RŸ]™]×1Ñ1Ó3Ó4°d¿M¹MÔJØÒØ×ÑœS §¡×!7Ñ!7Ó!9Ó:¸FØŸ_™_ö.ñ r6   rE   r`   )rp   r�   r‚   rƒ   r"   r#   Údirnamer¸   Úherer$   rž   r›   rõ   r   r„   r…   r†   s   @r/   rÚ   rÚ     sG   ø‡ € Ø�7‰7�?‰?˜8Ó$€DØ—G‘G—L‘L Ð':Ó;€MØ.€Gð°ô ÷8.ò .r6   rÚ   c                   óª  a € ] tR tR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 tR tR tR tR t]]P.                  ! ]P2                  R8H  R4      R 4       4       t]]P.                  ! ]P2                  R8H  R4      R 4       4       tR t]P.                  ! ]RJ ;'       g    ]P<                  ^ ,          ^8  R4      R 4       tRt V t!R# )Ú	TestCacheiB  c                ón  € V P                  ^ 4       V P                  4       pV P                  ^ 4       VP                  pV P                  V! ^^4      ^4       V P                  ^4       V P                  V! R^4      R4       V P                  ^4       V P	                  V^ ^4       VP
                  pV P                  V! ^^4      ^4       V P                  ^4       V P                  V! R^4      R4       V P                  ^4       V P	                  V^ ^4       VP                  pV! VP                  ^4      pV P                  \        V4      R4       V! VP                  ^4      pV P                  \        V4      R4       V P                  ^	4       V P	                  V^ ^4       V P                  4        R# )r   ç      @ç      @N)rN   g     ÀE@)rÓ   r½   Úadd_usecaseÚassertPreciseEqualr   Úadd_objmode_usecaseÚrecord_returnÚaligned_arrÚtupleÚ
packed_arrrõ   )rZ   r¼   r.   Úrecs   &   r/   Útest_cachingÚTestCache.test_cachingD  so  € Ø×Ñ˜1ÔØ× Ñ Ó"ˆØ×Ñ˜1Ôà�O‰OˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1ÔØ×Ñ¡ # q£	¨3Ô/Ø×Ñ˜1ÔØ�‰˜˜1˜aÔ à×#Ñ#ˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1ÔØ×Ñ¡ # q£	¨3Ô/Ø×Ñ˜1ÔØ�‰˜˜1˜aÔ à×ÑˆÙ�—‘ Ó#ˆØ×Ñ¤ c£
¨IÔ6Ù�—‘ Ó"ˆØ×Ñ¤ c£
¨IÔ6Ø×Ñ˜1ÔØ�‰˜˜1˜aÔ ð 	×$Ñ$Ö&r6   c                ó¼  € V P                  ^ 4       V P                  4       pV P                  ^ 4       VP                  pV P                  V! ^^4      ^4       V P                  ^4       V P                  V! ^\        P
                  ! ^4      4      ^\        P
                  ! ^4      ,           ^,           4       V P                  ^4       V P                  V^ ^4       R# ©r   N)rÓ   r½   r	  r
  ÚnpÚaranger   ©rZ   r¼   r.   s   &  r/   Útest_caching_nrt_prunedÚ!TestCache.test_caching_nrt_prunedb  s¨   € Ø×Ñ˜1ÔØ× Ñ Ó"ˆØ×Ñ˜1Ôà�O‰OˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1Ôà×Ñ¡ !¤R§Y¢Y¨q£\Ó 2°A¼¿	º	À!»Õ4DÀqÕ4HÔIØ×Ñ˜1ÔØ�‰˜˜1˜aÖ r6   c                óD  € V P                  4       pV P                  VP                  ^^4      ^4       V P                  ^4       VP                  pV P                  V! ^^4      ^4       V P                  ^4       V P                  4       pVP                  pV P                  V! ^^4      ^4       V P                  ^4       VP
                  pV P                  V! ^^4      ^4       V P                  ^4       V P                  V! R^4      R4       V P                  ^4       R# )rO   ç      @r  N)r½   r
  ÚinnerrÓ   Úouter_uncachedÚouterr  s   &  r/   Útest_inner_then_outerÚTestCache.test_inner_then_outero  sõ   € à× Ñ Ó"ˆØ×Ñ §	¡	¨!¨Q£°Ô3Ø×Ñ˜1Ôà×ÑˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1ÔØ× Ñ Ó"ˆØ×ÑˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1Ôà�I‰IˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1ÔØ×Ñ¡ # q£	¨3Ô/Ø×Ñ˜1Ör6   c                óÒ  € V P                  4       pV P                  VP                  ^^4      ^4       V P                  ^4       V P                  VP	                  ^^4      ^4       V P                  ^4       V P                  4       pVP
                  pV P                  V! ^^4      ^4       V P                  ^4       V P                  V! R^4      R4       V P                  ^4       R# )rO   r  r  N)r½   r
  r  rÓ   r  r  r  s   &  r/   Útest_outer_then_innerÚTestCache.test_outer_then_innerƒ  sÂ   € à× Ñ Ó"ˆØ×Ñ §	¡	¨!¨Q£°Ô3Ø×Ñ˜1ÔØ×Ñ × 2Ñ 2°1°aÓ 8¸!Ô<Ø×Ñ˜1ÔØ× Ñ Ó"ˆØ�I‰IˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1ÔØ×Ñ¡ # q£	¨3Ô/Ø×Ñ˜1Ör6   c                ó’   € V P                  4       pVP                  pV P                  V! ^^4      ^4       V P                  ^ 4       R# ©rN   N)r½   Úadd_nocache_usecaser
  rÓ   r  s   &  r/   Útest_no_cachingÚTestCache.test_no_caching‘  s?   € Ø× Ñ Ó"ˆà×#Ñ#ˆØ×Ñ¡ ! Q£¨Ô+Ø×Ñ˜1Ör6   c                óÊ  € V P                  4       p\        P                  ! R R7      ;_uu_ 4       p\        P                  ! R\        4       VP
                  pV P                  V! ^4      ^4       V P                  ^ 4       RRR4       V P                  \        X4      ^4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     LY; i)T©ÚrecordÚalwaysNzBCannot cache compiled function "looplifted" as it uses lifted code)r½   ÚwarningsÚcatch_warningsÚsimplefilterr   Ú
loopliftedr
  rÓ   rY   rÑ   ÚassertInÚstrÚmessage©rZ   r¼   Úwr.   s   &   r/   Útest_loopliftedÚTestCache.test_looplifted˜  s¤   € à× Ñ Ó"ˆä×$Ò$¨D×1Õ1°QÜ×!Ò! (¬LÔ9à—‘ˆAØ×#Ñ#¡A a£D¨!Ô,Ø×Ñ˜qÔ!÷ 2ð 	×Ñœ˜Q› Ô#Ø�‰ð /Ü03°A°aµD·L±LÓ0Aö	C÷ 2×1ús   °ACÃC"	c                óø  € V P                  4       p\        P                  ! R R7      ;_uu_ 4       p\        P                  ! R\        4       VP
                  p\        P                  P                  V! 4       VP                  4       V P                  ^ 4       RRR4       V P                  \        X4      ^4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     LY; i)Tr*  r,  NzICannot cache compiled function "use_big_array" as it uses dynamic globals)r½   r-  r.  r/  r   Úuse_big_arrayr  ÚtestingÚassert_equalÚbiggierÓ   rY   rÑ   r1  r2  r3  r4  s   &   r/   Útest_big_arrayÚTestCache.test_big_array§  s¬   € à× Ñ Ó"ˆÜ×$Ò$¨D×1Õ1°QÜ×!Ò! (¬LÔ9à×!Ñ!ˆAÜ�J‰J×#Ñ#¡A£C¨¯©Ô4Ø×Ñ˜qÔ!÷ 2ð 	×Ñœ˜Q› Ô#Ø�‰ð 3Ü47¸¸!½¿¹Ó4Eö	G÷ 2×1ús   °A(C)Ã)C9	c                ó8  € V P                  4       pVP                  VP                  VP                  3 FÏ  p\        P
                  ! R R7      ;_uu_ 4       p\        P                  ! R\        4       V P                  V! R4      R4       V P                  ^ 4       RRR4       V P                  \        X4      ^4       V P                  RP                  VP                  4      \        V^ ,          P                   4      4       KÑ  	  R#   + '       g   i     Lv; i)Tr*  r,  g        Nz#Cannot cache compiled function "{}")r½   Ú	use_c_sinÚuse_c_sin_nest1Úuse_c_sin_nest2r-  r.  r/  r   r
  rÓ   rY   rÑ   r1  Úformatrp   r2  r3  )rZ   r¼   r.   r5  s   &   r/   Útest_ctypesÚTestCache.test_ctypesµ  sÉ   € ð × Ñ Ó"ˆà—-‘- ×!4Ñ!4°c×6IÑ6IÓJˆAÜ×(Ò(°×5Õ5¸Ü×%Ò% h´Ô=à×'Ñ'©¨#«°Ô4Ø×"Ñ" 1Ô%÷	 6ð ×ÑœS ›V QÔ'Ø�M‰MØ5×<Ñ<¸Q¿Z¹ZÓHÜ�A�a•D—L‘LÓ!öó Kß5×5ús   ÁAD	Ä	Dc                ó  € V P                  4       p\        P                  ! 4       ;_uu_ 4        \        P                  ! R \        4       VP
                  pV P                  V! ^4      ^4       VP                  pV P                  V! ^4      ^4       VP                  pV P                  V! ^4      ^
4       VP                  pV P                  V! ^4      ^4       V P                  ^4       RRR4       R#   + '       g   i     R# ; i)ÚerrorN)r½   r-  r.  r/  r   Úclosure1r
  Úclosure2Úclosure3Úclosure4rÓ   r  s   &  r/   Útest_closureÚTestCache.test_closureÇ  sÀ   € Ø× Ñ Ó"ˆä×$Ò$×&Õ&Ü×!Ò! '¬<Ô8à—‘ˆAØ×#Ñ#¡A a£D¨!Ô,Ø—‘ˆAØ×#Ñ#¡A a£D¨!Ô,Ø—‘ˆAØ×#Ñ#¡A a£D¨"Ô-Ø—‘ˆAØ×#Ñ#¡A a£D¨"Ô-Ø×Ñ˜qÔ!÷ '×&×&Ò&ús   ®B=C5Ã5D	c                óx  € V P                  4       pVP                  pV P                  V! VP                  ^4      ^4       V P                  V! VP                  ^
4      ^d4       V P                  V! VP                  ^4      ^4       V P                  V! VP                  ^
4      ^4       V P                  ^4       R# )rM   N)r½   Úfirst_class_function_usecaserY   Úfirst_class_function_mulÚfirst_class_function_addrÓ   r  s   &  r/   Útest_first_class_functionÚ#TestCache.test_first_class_function×  sŸ   € Ø× Ñ Ó"ˆØ×,Ñ,ˆØ×Ñ™˜3×7Ñ7¸Ó;¸QÔ?Ø×Ñ™˜3×7Ñ7¸Ó<¸cÔBØ×Ñ™˜3×7Ñ7¸Ó;¸QÔ?Ø×Ñ™˜3×7Ñ7¸Ó<¸bÔAð 	×Ñ˜1Ör6   c                ó^  € V P                  4       pVP                  ^^4       VP                  RR4       VP                  ^^4       VP                  ^^4       VP	                  ^^4       VP                  VP                  ^ 4       VP                  VP                  ^4       V P                  4       pV P                  VP                  ^ ^4       V P                  4       pV P                  W4       VP                  pV! ^^4       V P                  V^^ 4       V! RR4       V P                  V^^ 4       VP                  pV! ^^4       V P                  V^^ 4       V P                  V P                  4       V4       V P                  4        V P                  V P                  4       V4       R# )rN   r  r  N)r½   r	  r  r  r  r  r  r  rÎ   r   ÚassertIsNotrY   rõ   )rZ   r¼   ÚmtimesÚmod2r.   s   &    r/   Útest_cache_reuseÚTestCache.test_cache_reuseâ  s`  € Ø× Ñ Ó"ˆØ�‰˜˜1ÔØ�‰˜˜SÔ!Ø×Ñ  1Ô%Ø×Ñ˜1˜aÔ Ø�	‰	�!�QŒØ×Ñ˜#Ÿ.™.¨!Ô,Ø×Ñ˜#Ÿ/™/¨1Ô-Ø×&Ñ&Ó(ˆà�‰˜Ÿ™¨¨AÔ.à×!Ñ!Ó#ˆØ×Ñ˜Ô#Ø×ÑˆÙ	ˆ!ˆQŒØ�‰˜˜1˜aÔ Ù	ˆ#ˆsŒØ�‰˜˜1˜aÔ Ø×$Ñ$ˆÙ	ˆ!ˆQŒØ�‰˜˜1˜aÔ ð 	×Ñ˜×.Ñ.Ó0°&Ô9à×$Ñ$Ô&Ø×Ñ˜×.Ñ.Ó0°&Ö9r6   c                óº  € V P                  4       pVP                  pV P                  V! ^^4      ^4       \        V P                  R4      ;_uu_ 4       pVP                  R4       RRR4       V P                  4       pVP                  pV P                  V! ^^4      ^4       VP                  pV P                  V! ^^4      ^4       R#   + '       g   i     Ll; i)rN   rC   z
Z = 10
N)r½   r	  r
  r&   rœ   r'   r  r  s   &  r/   Útest_cache_invalidateÚTestCache.test_cache_invalidate   s®   € Ø× Ñ Ó"ˆØ�O‰OˆØ×Ñ¡ ! Q£¨Ô+ô �$—,‘, ×$Ô$¨Ø�G‰G�LÔ!÷ %ð × Ñ Ó"ˆØ�O‰OˆØ×Ñ¡ ! Q£¨Ô,Ø×#Ñ#ˆØ×Ñ¡ ! Q£¨Ö,÷ %×$ús   ÁC
Ã
C	c                ó¤  € V P                  4       pVP                  pV P                  V! ^^4      ^4       V P                  4       pVP                  p^
Vn        V P                  V! ^^4      ^4       VP	                  4        V P                  V! ^^4      ^4       V P                  4       pVP                  pV P                  V! ^^4      ^4       R# r%  )r½   r	  r
  ÚZÚ	recompiler  s   &  r/   Útest_recompileÚTestCache.test_recompile  s±   € à× Ñ Ó"ˆØ�O‰OˆØ×Ñ¡ ! Q£¨Ô+à× Ñ Ó"ˆØ�O‰OˆØˆŒØ×Ñ¡ ! Q£¨Ô+Ø	�‰ŒØ×Ñ¡ ! Q£¨Ô,ð × Ñ Ó"ˆØ�O‰OˆØ×Ñ¡ ! Q£¨Ö,r6   c                ó¶   € V P                  4       pVP                  pV P                  V! ^4      ^4       VP                  pV P                  V! ^4      ^4       R# r%  )r½   Úrenamed_function1r
  Úrenamed_function2r  s   &  r/   Útest_same_namesÚTestCache.test_same_names!  sN   € à× Ñ Ó"ˆØ×!Ñ!ˆØ×Ñ¡ !£ aÔ(Ø×!Ñ!ˆØ×Ñ¡ !£ aÖ(r6   c                ót  € ^RI Hp VP                  p\        RRR4      p W1n        \        P
                  ! V4      p\        P                  ! W4      pV P                  V4       R\        n
        \        P                  ! W4      pV P                  V\        4       W!n        \        =
R#   Y!n        \        =
i ; i)rM   ©ÚfunctionÚpassztests/dummy_module.pyÚexecTN)Údummy_moduleri  Ú__code__ÚcompileÚinspectÚgetfiler   Úfrom_functionÚassertIsNoner™   ÚfrozenÚassertIsInstance)rZ   ri  Úold_codeÚcode_objÚsourceÚlocators   &     r/   Útest_frozenÚTestCache.test_frozen)  sž   € Ý*Ø×$Ñ$ˆÜ˜6Ð#:¸FÓCˆð	Ø (Ôä—_’_ XÓ.ˆFô +×8Ò8¸ÓJˆGØ×Ñ˜gÔ&àŒCŒJô +×8Ò8¸ÓJˆGØ×!Ñ! 'Ô+?Ô@ð !)ÔÜ’
øð !)ÔÜ‘
ús   ¡A:B) Â)B7c                ó´  € V P                  4       pVP                  pV P                  \        P                  VP
                  P                  RR7       V P                  V! ^^4      ^4       V P                  V^ ^4       V P                  4       pVP                  pV P                  V! ^^4      ^4       V P                  V^^ 4       V P                  ^ 4       R# )za
With a disabled __pycache__, test there is a working fallback
(e.g. on the user-wide cache dir)
T)Úignore_errorsN)
r½   r	  Ú
addCleanupr)   r*   rø   Ú
cache_pathr
  r   rÓ   )rZ   r¼   r.   rW  s   &   r/   Ú_test_pycache_fallbackÚ TestCache._test_pycache_fallback@  s´   € ð
 × Ñ Ó"ˆØ�O‰Oˆð 	�‰œŸ™ q§w¡w×'9Ñ'9ÈˆÔNà×Ñ¡ ! Q£¨Ô+à�‰˜˜1˜aÔ ð ×!Ñ!Ó#ˆØ×ÑˆØ×Ñ¡ ! Q£¨Ô+Ø�‰˜˜1˜aÔ ð 	×Ñ˜1Ör6   c                ó®  a € V 3R  lpS P                  4       pVP                  ^^4       V! 4       pS P                  VR4       \        P                  ! ^4       \
        P                  ! S P                  R4       \        P                  ! S P                  4       S P                  4       pVP                  ^^4       V! 4       pS P                  W4R4       R# )c                  óF  <€ SP                  4        U u/ uF�  p V P                  R 4      '       g   K  V \        P                  ! \	        \
        P                  P                  SP                  V 4      R4      P                  4       4      P                  4       bKƒ  	  up # u up i )z.nbiÚrb)rÄ   rÂ   ÚhashlibÚmd5r&   r"   r#   r$   ry   ÚreadÚ	hexdigest)rÃ   rZ   s    €r/   Ú
nbi_hashesÚ?TestCache.test_nbi_reproducible_after_touch.<locals>.nbi_hashesZ  s‚   ø€ ð
 ×-Ñ-Ô/ó	ñ 0�BØ—;‘;˜v×&ô	�”G—K’KÜœŸ™Ÿ™ d§n¡n°bÓ9¸4Ó@×EÑEÓGóç‘)“+òñ 0ñ	ð ùò s   ”B²A)Bz%No .nbi files found after compilationNuj   .nbi file differs after touch with unchanged content â€” source stamp embeds mtime instead of content hash)r½   r	  Ú
assertTrueÚtimeÚsleepr"   Úutimerœ   r)   r*   ry   rY   )rZ   rˆ  r¼   Úh1Úh2s   f    r/   Ú!test_nbi_reproducible_after_touchÚ+TestCache.test_nbi_reproducible_after_touchY  s§   ø€ õ	ð × Ñ Ó"ˆØ�‰˜˜1ÔÙ‹\ˆØ�‰˜ÐCÔDô 	�
Š
�1ŒÜ
�Š�—‘˜tÔ$Ü�Š�d—n‘nÔ%ð × Ñ Ó"ˆØ�‰˜˜1ÔÙ‹\ˆà×ÑØð@ö	
r6   Úntz3cannot easily make a directory read-only on Windowsc                ó  € \         P                  ! V P                  4      P                  p\         P                  ! V P                  R 4       V P                  \         P                  V P                  V4       V P                  4        R# )r   N)r"   rŸ   r,   Úst_moder(   r}  r  )rZ   Ú	old_permss   & r/   Útest_non_creatable_pycacheÚ$TestCache.test_non_creatable_pycachey  sR   € ô
 —G’G˜DŸL™LÓ)×1Ñ1ˆ	Ü
�Š�—‘˜uÔ%Ø�‰œŸ™ $§,¡,°	Ô:à×#Ñ#Ö%r6   c                óT  € \         P                  P                  V P                  R 4      p\         P                  ! V4       \         P
                  ! V4      P                  p\         P                  ! VR4       V P                  \         P                  W4       V P                  4        R# )r˜   r   N)
r"   r#   r$   r,   r%   rŸ   r”  r(   r}  r  )rZ   Úpycacher•  s   &  r/   Útest_non_writable_pycacheÚ#TestCache.test_non_writable_pycache„  sh   € ô
 —'‘'—,‘,˜tŸ|™|¨]Ó;ˆÜ
�Š�ÔÜ—G’G˜GÓ$×,Ñ,ˆ	Ü
�Š�˜%Ô Ø�‰œŸ™ 'Ô5à×#Ñ#Ö%r6   c                óŒ  a aa€ \         P                  R R.oS. R
O,          o \        P                  ! SR.,           4      pXP                  4       P                  4       p\        P                  P                  S P                  R4      o\        SR4      ;_uu_ 4       pVP                  R4       RRR4       VVV 3R lpV! 4        V! 4       pS P                  R	VP                  4       4       R#   \        P                   d-   pS P                  RTP                  ,          4        Rp?LêRp?ii ; i  + '       g   i     LŒ; i)ú-mÚIPythonú	--versionú%ipython not available: return code %dNzipython_cache_usecase.txtr5  á}  
                import os
                import sys

                from numba import jit

                # IPython 5 does not support multiline input if stdin isn't
                # a tty (https://github.com/ipython/ipython/issues/9752)
                f = jit(cache=True)(lambda: 42)

                res = f()
                # IPython writes on stdout, so use stderr instead
                sys.stderr.write(u"cache hits = %d\n" % f.stats.cache_hits[()])

                # IPython hijacks sys.exit(), bypass it
                sys.stdout.flush()
                sys.stderr.flush()
                os._exit(res)
                c            
      ój  <€ \        SR 4      ;_uu_ 4       p \        P                  ! SV \        P                  \        P                  RR7      pVP	                  4       w  r#VP
                  ^*8w  d%   SP                  RVP
                  W#3,          4       VuuRRR4       #   + '       g   i     R# ; i©rƒ  T)Ústdinrá   râ   Úuniversal_newlinesz6unexpected return code %d
-- stdout:
%s
-- stderr:
%s
N©r&   rè   ré   rë   rì   rí   rx   ©r¤  Úpró   rô   Úbase_cmdÚinputfnrZ   s       €€€r/   Úexecute_with_inputÚ2TestCache.test_ipython.<locals>.execute_with_input²  óŠ   ø€ ä�g˜t×$Ô$¨Ü×$Ò$ X°UÜ,6¯O©OÜ,6¯O©OØ8<ô>�ð Ÿ=™=›?‘�Ø—<‘< 2Ô%Ø—I‘Ið 1ð "#§¡¨sÐ 8õ9ô :ð ÷ %×$×$Ó$úó   –B B!Â!B2	úcache hits = 1©z--quietz--quickz--no-bannerz--colors=NoColor)r™   rê   rè   Úcheck_outputÚCalledProcessErrorÚskipTestrí   Ústriprï   r"   r#   r$   r,   r&   r'   r1  )rZ   ÚverÚer.   r«  rô   r©  rª  s   f     @@r/   Útest_ipythonÚTestCache.test_ipython‘  sú   ú€ ä—N‘N D¨)Ð4ˆØÒMÕMˆð	*Ü×)Ò)¨(°k°]Õ*BÓCˆCð �i‰i‹k× Ñ Ó"ˆä—'‘'—,‘,˜tŸ|™|Ð-HÓIˆÜ�'˜3×Ô 1Ø�G‰Gð ô ÷  ÷*	ñ 	Ôá Ó"ˆØ�‰Ð&¨¯	©	«Ö4øô[ ×,Ñ,ô 	*Ø�M‰MÐAØŸL™Lõ)÷ *ñ *ûð	*ú÷  ×ús#   £C/ ÂD3Ã/D0Ä"D+Ä+D0Ä3E	Nzrequires ipykernel >= 6c                ód  a aa€ \         P                  R R.oS. R
O,          o \        P                  ! SR.,           4      pXP                  4       P                  4       p^ RI	H
p VP                  4       o\        SR4      ;_uu_ 4       pVP                  R4       RRR4       VVV 3R lpV! 4        V! 4       pS P                  R	VP                  4       4       R#   \        P                   d-   pS P                  RTP                  ,          4        Rp?LÖRp?ii ; i  + '       g   i     LŒ; i)r�  rž  rŸ  r   N)Úcompilerr5  r¡  c            
      ój  <€ \        SR 4      ;_uu_ 4       p \        P                  ! SV \        P                  \        P                  RR7      pVP	                  4       w  r#VP
                  ^*8w  d%   SP                  RVP
                  W#3,          4       VuuRRR4       #   + '       g   i     R# ; ir£  r¦  r§  s       €€€r/   r«  Ú4TestCache.test_ipykernel.<locals>.execute_with_inputë  r­  r®  r¯  r°  )r™   rê   rè   r±  r²  r³  rí   r´  rï   Ú	ipykernelrº  Úget_tmp_directoryr&   r'   r1  )	rZ   rµ  r¶  rº  r.   r«  rô   r©  rª  s	   f      @@r/   Útest_ipykernelÚTestCache.test_ipykernelÆ  sô   ú€ ô
 —N‘N D¨)Ð4ˆØÒMÕMˆð	*Ü×)Ò)¨(°k°]Õ*BÓCˆCð �i‰i‹k× Ñ Ó"ˆå&Ø×,Ñ,Ó.ˆÜ�'˜3×Ô 1Ø�G‰Gð ô ÷  ÷*	ñ 	Ôá Ó"ˆØ�‰Ð&¨¯	©	«Ö4øô] ×,Ñ,ô 	*Ø�M‰MÐAØŸL™Lõ)÷ *ñ *ûð	*ú÷  ×ús#   £C Â	DÃDÃ0"DÄDÄD/	rE   )"rp   r�   r‚   rƒ   r  r  r  r"  r'  r6  r=  rD  rL  rR  rX  r[  r`  re  ry  r  r�  Úskip_bad_accessÚunittestÚskipIfr"   Únamer–  rš  r·  r½  Úversion_infor¿  r„   r…   r†   s   @r/   r  r  B  s
  ø‡ € ò'ò<!òò(òòCòGòò$"ò 	ò:ò<-ò-ò$)òò.ò2
ð@ Ø‡_‚_�R—W‘W ‘_ØJóLñ&óLó ð&ð Ø‡_‚_�R—W‘W ‘_ØJóLñ&óLó ð&ò35ðj ‡_‚_�i 4Ð'×KÐK¨Y×-CÑ-CÀAÕ-FÈÑ-JØ.ó0ñ55ó0ö55r6   r  c                   ó>   a a€ ] tR tRt oV 3R ltR tR tRtVtV ;t	# )ÚTestCacheZipi   c                ój  <€ \         SV `  4        R pRpRp\        P                  P	                  V P
                  V4      p\        P                  ! VR4      ;_uu_ 4       pVP                  W!4       RRR4       \        P                  P                  ^ V4       RV n        R#   + '       g   i     L9; i)zI
from numba import jit

@jit(cache=True)
def add(x, y):
    return x + y
ztest_module.pyztest_archive.zipr5  NÚtest_module)Úsuperr£   r"   r#   r$   r,   ÚzipfileÚZipFileÚwritestrr™   rš   r›   )rZ   Úmod_contentÚmod_filenameÚzip_filenameÚzip_pathÚzfro   s   &     €r/   r£   ÚTestCacheZip.setUp  s�   ø€ Ü‰‰Œðˆð (ˆØ)ˆô —7‘7—<‘< §¡¨lÓ;ˆÜ�_Š_˜X s×+Ô+¨rØ�K‰K˜Ô2÷ ,ô 	�‰�‰˜˜8Ô$Ø$ˆŽ÷ ,×+ús   ÁB"Â"B2	c                ó„   € \         P                  P                  ^ 4       \         P                  P                  RR4       R# )r   rÉ  N)r™   r#   r§   r¦   ra   s   &r/   r©   ÚTestCacheZip.tearDown  s#   € ä�‰�‰�QŒä�‰�‰˜ tÖ,r6   c                óœ  € ^ RI pVP                  ^^4      pV P                  V^4       V P                  VP                  ^ ^4       V P                  VP                  ^ 4       \        P
                  R \        P                  ! 4        ^ RI pVP                  ^^4      pV P                  V^4       V P                  VP                  ^4       R# )r   NrÉ  )rÉ  ÚaddrY   r   r™   r¦   Ú	importlibÚinvalidate_caches)rZ   rÉ  Úresult1Úresult2s   &   r/   Útest_zip_cachingÚTestCacheZip.test_zip_caching  s¢   € ó 	à—/‘/ ! QÓ'ˆØ×Ñ˜ !Ô$Ø�‰˜Ÿ™¨¨AÔ.ð 	�‰˜Ÿ™¨Ô+ô �K‰K˜Ð&Ü×#Ò#Ô%Ûð —/‘/ ! QÓ'ˆØ×Ñ˜ !Ô$ð 	�‰˜Ÿ™¨Ö+r6   )r›   )
rp   r�   r‚   rƒ   r£   r©   rÜ  r„   r…   Ú__classcell__©ro   r‡   s   @@r/   rÇ  rÇ     s   ù‡ € õ%ò.-÷,ò ,r6   rÇ  c                   ó0   a € ] tR tRt o RtR tR tRtV tR# )ÚTestCacheZipLibi;  zJ
ZipCache tests that don't require the setup/teardown from `TestCacheZip`
c                óò   € R  pRp\         P                  ! W4      pV P                  V4       V P                  VP                  \        \        R4      4      4       V P                  VP                  R4       R# )c                  ó   € R # r`   rE   rE   r6   r/   Ú	mock_funcÚ<TestCacheZipLib.test_zip_locator_creation.<locals>.mock_funcA  ó   € Ùr6   z/path/to/archive.zip/module.pyz/path/to/archive.zipz	module.pyN)r   rq  ÚassertIsNotNonerY   Ú	_zip_pathr2  r   Ú_internal_path)rZ   rä  rÑ  rx  s   &   r/   Útest_zip_locator_creationÚ)TestCacheZipLib.test_zip_locator_creation?  sc   € ò	ð 4ˆä!×/Ò/°	ÓDˆØ×Ñ˜WÔ%Ø×Ñ˜×*Ñ*¬C´Ð5KÓ0LÓ,MÔNØ×Ñ˜×/Ñ/°Ö=r6   c                ó^   € R  pRp\         P                  ! W4      pV P                  V4       R# )c                  ó   € R # r`   rE   rE   r6   r/   rä  Ú@TestCacheZipLib.test_zip_locator_non_zip_path.<locals>.mock_funcM  ræ  r6   z/path/to/module.pyN)r   rq  rr  )rZ   rä  Únon_zip_pathrx  s   &   r/   Útest_zip_locator_non_zip_pathÚ-TestCacheZipLib.test_zip_locator_non_zip_pathK  s,   € ò	ð ,ˆä!×/Ò/°	ÓHˆØ×Ñ˜'Ö"r6   rE   N)	rp   r�   r‚   rƒ   Ú__doc__rê  rð  r„   r…   r†   s   @r/   rá  rá  ;  s   ø‡ € ñò
>÷#ð #r6   rá  c                   óD   a a€ ] tR tRt oV 3R ltV 3R ltR tRtVtV ;t	# )ÚTestSequentialParForsCacheiV  c                óB   <€ \         \        V `  4        R \        n        R# )TN)rÊ  rô  r£   r   Úsequential_parfor_lowering©rZ   ro   s   &€r/   r£   Ú TestSequentialParForsCache.setUpX  s   ø€ ÜÔ(¨$Ñ5Ô7à,0ŒÖ)r6   c                óB   <€ \         \        V `  4        R \        n        R# )FN)rÊ  rô  r©   r   rö  r÷  s   &€r/   r©   Ú#TestSequentialParForsCache.tearDown]  s   ø€ ÜÔ(¨$Ñ8Ô:à,1ŒÖ)r6   c                ó¢  € V P                  4       pV P                  ^ 4       VP                  p\        P                  ! ^
4      pV P                  V! V4      W3,          V,           4       VP                  P                  4        Uu. uF  pVP                  P                  NK  	  ppV P                  VR.4       V P                  ^4       R# u upi )r   FN)r½   rÓ   Úparfor_usecaser  Úonesr
  Ú	overloadsrû   ÚlibraryÚhas_dynamic_globalsrY   )rZ   r¼   r.   ÚaryÚcresÚdynamic_globalss   &     r/   r  Ú'TestSequentialParForsCache.test_cachingb  s¬   € Ø× Ñ Ó"ˆØ×Ñ˜1ÔØ×ÑˆÜ�gŠg�b‹kˆØ×Ñ¡ #£¨­	°C­Ô8à'(§{¡{×'9Ñ'9Ô';ó=Ù';˜tð  Ÿ<™<×;Ô;Ù';ð 	ð =à×Ñ˜¨5¨'Ô2Ø×Ñ˜1Öùò=s   ÂCrE   )
rp   r�   r‚   rƒ   r£   r©   r  r„   r…   rÞ  rß  s   @@r/   rô  rô  V  s   ù‡ € õ1õ
2÷
	ò 	r6   rô  c                   ó†   a € ] tR tRt o RtR t]P                  ! ]P                  ! 4       R8H  R4      R 4       t
R tRtV tR	# )
ÚTestCacheWithCpuSettingin  Fc                óÒ   € ^ pV P                  4       P                  4        F.  w  r4W19   g   K  V P                  WAV,          4       V^,          pK0  	  V P                  V^ RR7       R# )r   znothing to compare©ÚmsgN)rÎ   ÚitemsÚassertGreaterEqualÚassertGreater)rZ   Ú
mtimes_oldÚmatch_countÚkrP   s   &&   r/   Úcheck_later_mtimesÚ*TestCacheWithCpuSetting.check_later_mtimesr  sb   € ØˆØ×)Ñ)Ó+×1Ñ1Ö3‰DˆAØŽØ×'Ñ'¨°a­=Ô9Ø˜qÕ ’ñ 4ð 	×Ñ˜;¨Ø3ð 	ö 	5r6   ÚgenericzLLVM detected 'generic' CPUc                ó¤  € V P                  ^ 4       V P                  R\        P                  ! 4       RR/R7       V P	                  4       p\        V P                  4       4      pV P                  RRRR/R7       V P                  V4       V P                  \        V P                  4       4      V4       V P                  4       pVP                  P                  pVP                  pVP                  4       pV P                  \        V4      ^4       VP                  4       w  rxV^,          ^,          R8X  d   Yxr©MYxršV P                  V
^,          ^,          \        P                  ! 4       4       V P                  V
^,          ^,          R4       V P                  V	^,          ^,          R4       V P                  V	^,          ^,          R4       R# )r   ÚNUMBA_CPU_NAMEÚNUMBA_CPU_FEATURESÚ ©rÝ   r  N)rÓ   rõ   ÚllÚget_host_cpu_namerÎ   rÑ   rÄ   r  r  r½   r	  Ú_cacheÚ_cache_fileÚ_load_indexrY   Úkeys)rZ   rV  Ú
cache_sizer¼   r:   Ú
cache_fileÚcache_indexÚkey_aÚkey_bÚkey_genericÚkey_hosts   &          r/   Útest_user_set_cpu_nameÚ.TestCacheWithCpuSetting.test_user_set_cpu_name{  s’  € ð 	×Ñ˜1Ôð 	×$Ñ$Ø%¤r×';Ò';Ó'=Ø)¨2ð/ð 	%ô 	
ð ×&Ñ&Ó(ˆÜ˜×,Ñ,Ó.Ó/ˆ
ð 	×$Ñ$Ø˜iØ  "ð.
Ð$ô 	ð
 	×Ñ Ô'Ø×Ñœ3˜t×2Ñ2Ó4Ó5°zÔBà× Ñ Ó"ˆØ—‘×&Ñ&ˆØ×&Ñ&ˆ
Ø ×,Ñ,Ó.ˆØ×Ñœ˜[Ó)¨1Ô-Ø$×)Ñ)Ó+‰ˆØ��8�A�;˜)Ô#Ø$)™à$)�kØ×Ñ˜ !� Q�¬×)=Ò)=Ó)?Ô@Ø×Ñ˜ !� Q�¨Ô,Ø×Ñ˜ Q�¨Õ*¨IÔ6Ø×Ñ˜ Q�¨Õ*¨BÖ/r6   c                ó  € V P                  ^ 4       \        P                  P                  4       p\        P                  ! 4       pV P                  RV/R7       \        V P                  4       4      pV P                  4       pRpV P                  W%4       V P                  RV/R7       V P                  V4       V P                  \        V P                  4       4      V4       V P                  4       pVP                  P                  pVP                  pVP!                  4       p	V P#                  \        V	4      ^4       V	P%                  4       w  r«V
^,          ^,          V8X  d   Y«rÜMY«rÍV P#                  V^,          ^,          VP'                  4       4       V P#                  V^,          ^,          V4       V P#                  V^,          ^,          VP'                  4       4       V P#                  V^,          ^,          V4       R# )r   r  r  z	-sse;-avxN)rÓ   r   Útarget_contextr   Úget_host_cpu_featuresrõ   rÑ   rÄ   rÎ   ÚassertNotEqualr  r  r½   r	  r  r  r  rY   r  Ú_get_host_cpu_name)rZ   Úcpu_codegenÚsystem_featuresr  rV  Úmy_cpu_featuresr¼   r:   r  r   r!  r"  Úkey_modifiedr$  s   &             r/   Útest_user_set_cpu_featuresÚ2TestCacheWithCpuSetting.test_user_set_cpu_features   s·  € Ø×Ñ˜1Ôä ×/Ñ/×7Ñ7Ó9ˆä!×7Ò7Ó9ˆð 	×$Ñ$Ø)¨?Ð;ð 	%ô 	
ô ˜×,Ñ,Ó.Ó/ˆ
à×&Ñ&Ó(ˆà%ˆà×Ñ˜OÔ=Ø×$Ñ$Ø)¨?Ð;ð 	%ô 	
ð 	×Ñ Ô'Ø×Ñœ3˜t×2Ñ2Ó4Ó5°zÔBà× Ñ Ó"ˆØ—‘×&Ñ&ˆØ×&Ñ&ˆ
Ø ×,Ñ,Ó.ˆØ×Ñœ˜[Ó)¨1Ô-Ø$×)Ñ)Ó+‰ˆà��8�A�;˜/Ô)Ø%*™(à%*�là×Ñ˜ !� Q�¨×)GÑ)GÓ)IÔJØ×Ñ˜ !� Q�¨Ô9Ø×Ñ˜ a�¨Õ+¨[×-KÑ-KÓ-MÔNØ×Ñ˜ a�¨Õ+¨_Ö=r6   rE   N)rp   r�   r‚   rƒ   Ú_numba_parallel_test_r  rÂ  rÃ  r  r  r%  r0  r„   r…   r†   s   @r/   r  r  n  sK   ø‡ € à!Ðò5ð ‡_‚_�R×)Ò)Ó+¨yÑ8Ø2ó4ñ!0ó4ð!0÷F'>ð '>r6   r  c                   óœ   a € ] tR tRt o Rt]P                  P                  ]4      t	]P                  P                  ]	R4      tRtR tRtV tR# )ÚTestMultiprocessCacheiÊ  FrÛ   rÜ   c                ó   € V P                  4       pVP                  p^p \        P                  ! R4      pVP                  V4      p \        VP                  V\        V4      4      4      pVP                  4        V P                  WcV^,
          ,          ^,          4       R#   \         d
    \        p L�i ; i  TP                  4        i ; i)rO   ÚspawnN)r½   Úsimple_usecase_callerrq   rr   ÚAttributeErrorÚPoolrù   ÚimapÚrangeÚcloserY   )rZ   r¼   r.   rÒ   rz   Úpoolr\   s   &      r/   Útest_multiprocessingÚ*TestMultiprocessCache.test_multiprocessingÔ  sª   € à× Ñ Ó"ˆð ×%Ñ%ˆØˆð	"Ü!×-Ò-¨gÓ6ˆCð �x‰x˜‹{ˆð	Ü�d—i‘i ¤5¨£8Ó,Ó-ˆCà�J‰JŒLØ×Ñ˜ 1 q¥5�k¨QÕ.Ö/øô ô 	"Ü!ŠCð	"ûð �J‰J�Lús    B$ Á$B; Â$B8Â7B8Â;CrE   N)rp   r�   r‚   rƒ   r2  r"   r#   r  r¸   r  r$   rž   r›   r>  r„   r…   r†   s   @r/   r4  r4  Ê  sC   ø‡ € ð "Ðà�7‰7�?‰?˜8Ó$€DØ—G‘G—L‘L Ð':Ó;€MØ.€G÷0ð 0r6   r4  c                   óü   a € ] tR tRt o Rt]P                  P                  ]4      t	]P                  P                  ]	R4      tRtRtRtR tR tR	 tR
 tR t]P*                  ! ]! ]R4      R4      R 4       tRtV tR# )ÚTestCacheFileCollisioniç  FrÛ   Úcaching_file_loc_fodderzD
from numba import njit
@njit(cache=True)
def bar():
    return 123
zD
from numba import njit
@njit(cache=True)
def bar():
    return 321
c                ól  € \        R 4      V n        \        P                  P	                  ^ V P                  4       RV n        V P                  V P
                  \        P                  4       V P
                  V n        RP                  V P
                  R.4      V n
        \        P                  P                  V P                  V P
                  4      p\        P                  ! V4       \        \        P                  P                  VR4      R4      ;_uu_ 4       p\        V P                  VR7       RRR4       \        \        P                  P                  VR4      R4      ;_uu_ 4       p\        V P                   VR7       RRR4       R#   + '       g   i     Ld; i  + '       g   i     R# ; i)	Útest_cache_file_locÚmodule_name_that_is_unlikelyÚ.Úfooz__init__.pyr5  ©ÚfileNzfoo.py)r   r,   r™   r#   rš   r›   ÚassertNotInr¦   Úmodname_bar1r$   Úmodname_bar2r"   r%   r&   ÚprintÚsource_text_1Úsource_text_2)rZ   ÚfoomodÚfouts   &  r/   r£   ÚTestCacheFileCollision.setUpû  s  € Ü%Ð&;Ó<ˆŒÜ�‰�‰˜˜4Ÿ<™<Ô(Ø5ˆŒØ×Ñ˜Ÿ™¤s§{¡{Ô3Ø ŸL™LˆÔØŸH™H d§l¡l°EÐ%:Ó;ˆÔÜ—‘—‘˜dŸl™l¨D¯L©LÓ9ˆÜ
�Š�ÔÜ”"—'‘'—,‘,˜v }Ó5°s×;Ô;¸tÜ�$×$Ñ$¨4Õ0÷ <ä”"—'‘'—,‘,˜v xÓ0°#×6Ô6¸$Ü�$×$Ñ$¨4Õ0÷ 7Ñ6÷ <×;úç6×6Ð6ús   ÄFÅ-F"ÆF	Æ"F3	c                ó   € \         P                  P                  V P                  R 4       \         P                  P                  V P                  R 4       \         P
                  P                  V P                  4       R # r`   )r™   r¦   r§   rK  rL  r#   r¨   r,   ra   s   &r/   r©   ÚTestCacheFileCollision.tearDown	  sF   € Ü�‰�‰˜×)Ñ)¨4Ô0Ü�‰�‰˜×)Ñ)¨4Ô0Ü�‰�‰˜Ÿ™Ö%r6   c                ó@   € \        V P                  4      P                  # r`   )r   rK  Úbarra   s   &r/   Úimport_bar1Ú"TestCacheFileCollision.import_bar1  ó   € Ü˜d×/Ñ/Ó0×4Ñ4Ð4r6   c                ó@   € \        V P                  4      P                  # r`   )r   rL  rV  ra   s   &r/   Úimport_bar2Ú"TestCacheFileCollision.import_bar2  rY  r6   c                óh  € V P                  4       pV P                  4       pVP                  P                  P                  pVP                  P                  P                  pV P                  W44       V P                  VP                  R 4      4       V P                  VP                  R4      4       R# )z__init__.bar-3.pyzfoo.bar-3.pyN)rW  r[  r  r  Ú_index_namer*  rŠ  Ú
startswith)rZ   Úbar1Úbar2Úidxname1Úidxname2s   &    r/   Útest_file_locationÚ)TestCacheFileCollision.test_file_location  s…   € Ø×ÑÓ!ˆØ×ÑÓ!ˆà—;‘;×*Ñ*×6Ñ6ˆØ—;‘;×*Ñ*×6Ñ6ˆØ×Ñ˜HÔ/Ø�‰˜×+Ñ+Ð,?Ó@ÔAØ�‰˜×+Ñ+¨NÓ;Ö<r6   rr   z)Test requires multiprocessing.get_contextc                óž  € V P                  4       pV P                  4       p\        4       ;_uu_ 4       pV! 4       pR R R 4       XP                  4       pV P	                  VP                  R4      ^4       V P	                  VP                  R4      ^4       V P	                  VP                  R4      ^ 4       V P	                  VP                  R4      ^ 4       \        4       ;_uu_ 4       pV! 4       pR R R 4       VP                  4       pV P	                  VP                  R4      ^4       V P	                  VP                  R4      ^4       V P	                  VP                  R4      ^ 4       V P	                  VP                  R4      ^ 4       V P                  XX4        \        P                  ! R4      pXP                  4       pVP                  \        W€P                  V P                  V P                   3R7      p	V	P#                  4        VP%                  4       p
VP%                  4       pVP%                  4       pVP%                  4       pV	P'                  4        V P	                  W´4       V P	                  WÖ4       V P	                  V
P                  R4      ^ 4       V P	                  V
P                  R4      ^ 4       V P	                  V
P                  R4      ^4       V P	                  V
P                  R4      ^4       V P	                  VP                  R4      ^ 4       V P	                  VP                  R4      ^ 4       V P	                  VP                  R4      ^4       V P	                  VP                  R4      ^4       R #   + '       g   i     ELX; i  + '       g   i     EL¶; i  \         d    \        R4        ELi ; i)Nzindex savedz
data savedzindex loadedzdata loadedr6  zmissing spawn contextrk   )rW  r[  r   ÚgetvaluerY   Úcountr*  rq   rr   Ú
ValueErrorrM  rs   rt   Úcache_file_collision_testerr,   rK  rL  rv   rw   r$   )rZ   r`  ra  ÚbufÚres1ÚcachelogÚres2ÚmpÚqr|   Úlog1Úgot1Úlog2Úgot2s   &             r/   Útest_no_collisionÚ(TestCacheFileCollision.test_no_collision  sð  € ð ×ÑÓ!ˆØ×ÑÓ!ˆÜ× Ô  CÙ“6ˆD÷ !à—<‘<“>ˆà×Ñ˜Ÿ™¨Ó6¸Ô:Ø×Ñ˜Ÿ™¨Ó5°qÔ9Ø×Ñ˜Ÿ™¨Ó7¸Ô;Ø×Ñ˜Ÿ™¨Ó6¸Ô:Ü× Ô  CÙ“6ˆD÷ !à—<‘<“>ˆà×Ñ˜Ÿ™¨Ó6¸Ô:Ø×Ñ˜Ÿ™¨Ó5°qÔ9Ø×Ñ˜Ÿ™¨Ó7¸Ô;Ø×Ñ˜Ÿ™¨Ó6¸Ô:Ø×Ñ˜D $Ô'ð	+ô !×,Ò,¨WÓ5ˆBð �H‰H‹Jˆà�z‰zÔ!<Ø !§<¡<Ø $× 1Ñ 1Ø $× 1Ñ 1ð 3ð ó 4ˆð 	�
‰
Œà�u‰u‹wˆØ�u‰u‹wˆØ�u‰u‹wˆØ�u‰u‹wˆØ�	‰	Œð 	×Ñ˜Ô$Ø×Ñ˜Ô$ð 	×Ñ˜Ÿ™ MÓ2°AÔ6Ø×Ñ˜Ÿ™ LÓ1°1Ô5Ø×Ñ˜Ÿ™ NÓ3°QÔ7Ø×Ñ˜Ÿ™ MÓ2°AÔ6ð 	×Ñ˜Ÿ™ MÓ2°AÔ6Ø×Ñ˜Ÿ™ LÓ1°1Ô5Ø×Ñ˜Ÿ™ NÓ3°QÔ7Ø×Ñ˜Ÿ™ MÓ2°AÖ6÷m !× Ð ú÷ !× Ð ûô ô 	+ÜÐ)×*ð	+ús)   ³N
Ã)NÆ N2 Î
N	ÎN/	Î2OÏO)r›   rK  rL  r,   N)rp   r�   r‚   rƒ   r2  r"   r#   r  r¸   r  r$   rž   r›   rN  rO  r£   r©   rW  r[  rd  rÂ  Ú
skipUnlessÚhasattrrq   ru  r„   r…   r†   s   @r/   rA  rA  ç  s‹   ø‡ € à!Ðà�7‰7�?‰?˜8Ó$€DØ—G‘G—L‘L Ð':Ó;€MØ'€Gð€Mð€Mò1ò&ò
5ò5ò=ð ×Ò™ °-Ó@ØDóFñ97óFö97r6   rA  c                 ó.  € \         P                  P                  ^ V4       \        V4      P                  p\        V4      P                  p\        4       ;_uu_ 4       pV! 4       pRRR4       V P                  XP                  4       4       V P                  X4       \        4       ;_uu_ 4       pV! 4       pRRR4       V P                  VP                  4       4       V P                  X4       R#   + '       g   i     L”; i  + '       g   i     LU; ir  )r™   r#   rš   r   rV  r   r“   rg  )	rp  r,   rK  rL  r`  ra  rk  Úr1Úr2s	   &&&&     r/   rj  rj  \  s®   € Ü‡H�H‡O�O�A�wÔÜ˜,Ó'×+Ñ+€DÜ˜,Ó'×+Ñ+€DÜ	×	Ô	 Ù‹Vˆ÷ 
à‡E�Eˆ#�,‰,‹.ÔØ‡E�Eˆ"„IÜ	×	Ô	 Ù‹Vˆ÷ 
à‡E�Eˆ#�,‰,‹.ÔØ‡E�Eˆ"†I÷ 
×	ú÷ 
×	ús   ÁC1Â/DÃ1D	ÄD	c                   ó>   a € ] tR tRt o RtRtRtR tR tR t	Rt
V tR	# )
Ú#TestCacheMultipleFilesWithSignatureij  Fz
from file2 import function2
z¤
from numba import njit

@njit('float64(float64)', cache=True)
def function1(x):
    return x

@njit('float64(float64)', cache=True)
def function2(x):
    return x
c                ó(  € \        R 4      V n        \        P                  P	                  V P                  R4      V n        \        V P
                  R4      ;_uu_ 4       p\        V P                  VR7       RRR4       \        P                  P	                  V P                  R4      V n	        \        V P                  R4      ;_uu_ 4       p\        V P                  VR7       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)rD  zfile1.pyr5  rH  Nzfile2.py)r   r,   r"   r#   r$   Úfile1r&   rM  Úsource_text_file1Úfile2Úsource_text_file2)rZ   rQ  s   & r/   r£   Ú)TestCacheMultipleFilesWithSignature.setUp~  s­   € Ü%Ð&;Ó<ˆŒä—W‘W—\‘\ $§,¡,°
Ó;ˆŒ
Ü�$—*‘*˜c×"Ô" dÜ�$×(Ñ(¨tÕ4÷ #ô —W‘W—\‘\ $§,¡,°
Ó;ˆŒ
Ü�$—*‘*˜c×"Ô" dÜ�$×(Ñ(¨tÕ4÷ #Ñ"÷	 #×"ú÷ #×"Ð"ús   ÁC-ÃD Ã-C=	Ä D	c                óF   € \         P                  ! V P                  4       R # r`   )r)   r*   r,   ra   s   &r/   r©   Ú,TestCacheMultipleFilesWithSignature.tearDown‰  s   € Ü�Š�d—l‘lÖ#r6   c                ó�  € \         P                  ! \        P                  V P                  .\         P
                  \         P
                  R 7      pVP                  4       w  r#RVP                  4        RVP                  4        2pV P                  VP                  ^ VR7       \         P                  ! \        P                  V P                  .\         P
                  \         P
                  R 7      pVP                  4       w  r#RVP                  4        RVP                  4        2pV P                  VP                  ^ V4       R# )©rá   râ   zstdout:
z


stderr:
r  N)rè   ré   r™   rê   r  rë   rì   rï   rY   rí   r�  )rZ   rò   ró   rô   r	  s   &    r/   Ú*test_caching_mutliple_files_with_signatureÚNTestCacheMultipleFilesWithSignature.test_caching_mutliple_files_with_signatureŒ  sñ   € ä× Ò ¤#§.¡.°$·*±*Ð!=Ü(2¯©Ü(2¯©ô9ˆð ×$Ñ$Ó&‰ˆØ˜#Ÿ*™*›,˜ }°S·Z±Z³\°NÐCˆØ×Ñ˜×)Ñ)¨1°#ÐÔ6ô × Ò ¤#§.¡.°$·*±*Ð!=Ü(2¯©Ü(2¯©ô9ˆð ×$Ñ$Ó&‰ˆØ˜#Ÿ*™*›,˜ }°S·Z±Z³\°NÐCˆØ×Ñ˜×)Ñ)¨1¨cÖ2r6   )r  r�  r,   N)rp   r�   r‚   rƒ   r2  r€  r‚  r£   r©   rˆ  r„   r…   r†   s   @r/   r}  r}  j  s1   ø‡ € ð "ÐðÐð
Ðò	5ò$÷3ð 3r6   r}  c                   ó¤   a € ] tR tRt o ]P
                  P                  ]4      t]P
                  P                  ]R4      t
RtR tR tR tRtV tR# )	ÚTestCFuncCacheiž  zcfunc_cache_usecases.pyÚcfunc_caching_test_fodderc                ó|  € R \        V P                  V P                  R7      ,          p\        P                  ! \
        P                  RV.\        P                  \        P                  R7      pVP                  4       w  r4VP                  ^ 8w  d+   \        RVP                   RVP                  4        R24      hR# )af  if 1:
            import sys

            sys.path.insert(0, %(tempdir)r)
            mod = __import__(%(modname)r)
            mod.self_test()

            f = mod.add_usecase
            assert f.cache_hits == 1
            f = mod.outer
            assert f.cache_hits == 1
            f = mod.div_usecase
            assert f.cache_hits == 1
            rß   rà   r‡  rä   z:stderr follows
rå   N)rÌ   r,   r›   rè   ré   r™   rê   rë   rì   rí   rî   rï   )rZ   rð   rò   ró   rô   s   &    r/   rõ   Ú&TestCFuncCache.run_in_separate_process¤  s©   € ðô ˜tŸ|™|°T·\±\ÔBõCˆô × Ò ¤#§.¡.°$¸Ð!=Ü(2¯©Ä
ÇÁôQˆà×$Ñ$Ó&‰ˆØ×Ñ˜qÔ Ü Ð#<¸U×=MÑ=MÐ<Nð O4Ø47·J±J³L°>Àð"Eó Fð Fñ !r6   c                ó&   € VP                  4        R # r`   )Ú	self_test©rZ   r¼   s   &&r/   Úcheck_moduleÚTestCFuncCache.check_module¼  s   € Ø�‰Žr6   c                óp  € V P                  ^ 4       V P                  4       pV P                  ^4       V P                  VP                  P                  ^ 4       V P                  VP
                  P                  ^ 4       V P                  VP                  P                  ^ 4       V P                  VP                  P                  ^ 4       V P                  V4       V P                  4       pV P                  ^4       V P                  VP                  P                  ^4       V P                  VP
                  P                  ^4       V P                  VP                  P                  ^ 4       V P                  VP                  P                  ^4       V P                  V4       V P                  4        R# r  )
rÓ   r½   rY   r	  rú   r  r&  Údiv_usecaser’  rõ   r‘  s   & r/   r  ÚTestCFuncCache.test_caching¿  sF  € Ø×Ñ˜1ÔØ× Ñ Ó"ˆØ×Ñ˜1Ôà×Ñ˜Ÿ™×3Ñ3°QÔ7Ø×Ñ˜Ÿ™×-Ñ-¨qÔ1Ø×Ñ˜×0Ñ0×;Ñ;¸QÔ?Ø×Ñ˜Ÿ™×3Ñ3°QÔ7Ø×Ñ˜#Ôð × Ñ Ó"ˆØ×Ñ˜1Ôà×Ñ˜Ÿ™×3Ñ3°QÔ7Ø×Ñ˜Ÿ™×-Ñ-¨qÔ1Ø×Ñ˜×0Ñ0×;Ñ;¸QÔ?Ø×Ñ˜Ÿ™×3Ñ3°QÔ7Ø×Ñ˜#Ôà×$Ñ$Ö&r6   rE   N)rp   r�   r‚   rƒ   r"   r#   r  r¸   r  r$   rž   r›   rõ   r’  r  r„   r…   r†   s   @r/   r‹  r‹  ž  sF   ø‡ € à�7‰7�?‰?˜8Ó$€DØ—G‘G—L‘L Ð'@ÓA€MØ)€GòFò0÷'ð 'r6   r‹  c                   ó   € ] tR tRtRtR# )ÚTestLocatori×  rE   N)rp   r�   r‚   rƒ   r„   rE   r6   r/   r˜  r˜  ×  s   † Ûr6   r˜  c                   óB   a € ] tR tRt o RtR tR tR tR tR t	Rt
V tR	# )
Ú&TestCacheLocatorEnvironmentIntegrationiÛ  z9Integration tests for environment variable functionality.c           	     óö   € R  p\        RR4      ;_uu_ 4        V P                  \        4      ;_uu_ 4        \        V4       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)c                  ó   € ^*# ©é*   rE   rE   r6   r/   rä  Ú\TestCacheLocatorEnvironmentIntegration.test_locators_env_override_unknown.<locals>.mock_funcß  ó   € Ùr6   ÚNUMBA_CACHE_LOCATOR_CLASSESzfoo,barN)r   ÚassertRaisesÚRuntimeErrorr   )rZ   rä  s   & r/   Ú"test_locators_env_override_unknownÚITestCacheLocatorEnvironmentIntegration.test_locators_env_override_unknownÞ  s_   € ò	ô !Ø)Ø÷
õ 
ð ×"Ñ"¤<×0Õ0Ü˜iÔ(÷ 1÷	
ñ 
÷ 1×0ú÷	
÷ 
ð 
ús"   ˜A'¶A	ÁA'ÁA$ÁA'Á'A8	c                óÜ   € R  p\        RR4      ;_uu_ 4        \        V4      p\        pV P                  VP                  P
                  V4       RRR4       R#   + '       g   i     R# ; i)c                  ó   € ^*# r�  rE   rE   r6   r/   rä  Ú[TestCacheLocatorEnvironmentIntegration.test_locators_env_override_single.<locals>.mock_funcê  r   r6   r¡  r
   N)r   r   r
   rt  Ú_implrx  ©rZ   rä  r:   ÚexpectedLocators   &   r/   Ú!test_locators_env_override_singleÚHTestCacheLocatorEnvironmentIntegration.test_locators_env_override_singleé  s_   € ò	ô !Ø)Ø*÷
õ 
ô " )Ó,ˆEÜ:ˆOØ×!Ñ! %§+¡+×"5Ñ"5Ø"1ô3÷
÷ 
÷ 
ò 
ús   ˜8AÁA+	c                óê   € R  p\        R\         R24      ;_uu_ 4        \        V4      p\        pV P	                  VP
                  P                  V4       RRR4       R#   + '       g   i     R# ; i)c                  ó   € ^*# r�  rE   rE   r6   r/   rä  Ú[TestCacheLocatorEnvironmentIntegration.test_locators_env_override_custom.<locals>.mock_func÷  r   r6   r¡  z.TestLocatorN)r   rp   r   r˜  rt  r©  rx  rª  s   &   r/   Ú!test_locators_env_override_customÚHTestCacheLocatorEnvironmentIntegration.test_locators_env_override_customö  sf   € ò	ô !Ø)Üˆj˜Ð%÷
õ 
ô " )Ó,ˆEÜ)ˆOØ×!Ñ! %§+¡+×"5Ñ"5Ø"1ô3÷
÷ 
÷ 
ò 
ús   Ÿ8A!Á!A2	c                óà   € R  pRp\         p\        RV4      ;_uu_ 4        \        V4      pV P                  VP                  P
                  V4       RRR4       R#   + '       g   i     R# ; i)c                  ó   € ^*# r�  rE   rE   r6   r/   rä  ÚYTestCacheLocatorEnvironmentIntegration.test_locators_env_override_list.<locals>.mock_func  r   r6   zXInTreeCacheLocatorFsAgnostic,InTreeCacheLocator,IPythonCacheLocator,UserWideCacheLocatorr¡  N)r
   r   r   rt  r©  rx  )rZ   rä  ÚlocatorClassesr«  r:   s   &    r/   Útest_locators_env_override_listÚFTestCacheLocatorEnvironmentIntegration.test_locators_env_override_list  sb   € ò	ðEˆä6ˆä Ø)Ø÷
õ 
ô " )Ó,ˆEØ×!Ñ! %§+¡+×"5Ñ"5°ÔG÷
÷ 
÷ 
ò 
ús    2AÁA-	c                óz   € R  p\        V4      p\        pV P                  VP                  P                  V4       R# )c                  ó   € ^*# r�  rE   rE   r6   r/   rä  ÚOTestCacheLocatorEnvironmentIntegration.test_default_locators.<locals>.mock_func  r   r6   N)r   r	   rt  r©  rx  rª  s   &   r/   Útest_default_locatorsÚ<TestCacheLocatorEnvironmentIntegration.test_default_locators  s2   € ò	ô ˜iÓ(ˆÜ,ˆØ×Ñ˜eŸk™k×1Ñ1°?ÖCr6   rE   N)rp   r�   r‚   rƒ   rò  r¤  r¬  r±  r·  r¼  r„   r…   r†   s   @r/   rš  rš  Û  s)   ø‡ € ÙCò	)ò3ò3òH÷Dð Dr6   rš  c                   ó*   a € ] tR tRt o RtR tRtV tR# )Ú TestInTreeCacheLocatorFsAgnostici  z.Test InTreeCacheLocatorFsAgnostic deprecation.c                óÐ  € ^RI Hp \        P                  ! V4      pV P	                  \
        4      ;_uu_ 4       p\        P                  ! W4      pRRR4       V P                  X4       V P                  R\        XP                  4      4       \        P                  ! W4      pV P                  VP                  4       VP                  4       4       R#   + '       g   i     LŒ; i)z:Instantiating the locator emits a NumbaDeprecationWarning.rh  Nz*InTreeCacheLocatorFsAgnostic is deprecated)rl  ri  ro  rp  ÚassertWarnsr   r
   rq  rç  r1  r2  Úwarningr	   rY   Úget_source_stamp)rZ   ri  rw  Úcmrx  Úregular_locators   &     r/   Útest_deprecation_warningÚ9TestInTreeCacheLocatorFsAgnostic.test_deprecation_warning  s©   € å*ä—’ Ó*ˆà×ÑÔ5×6Ô6¸"Ü2×@Ò@ØóˆG÷ 7ð
 	×Ñ˜WÔ%Ø�‰ÐBÜ˜"Ÿ*™*“oô	'ô -×:Ò:¸8ÓLˆØ×Ñ˜×1Ñ1Ó3Ø(×9Ñ9Ó;ö	=÷ 7×6ús   ºCÃC%	rE   N)rp   r�   r‚   rƒ   rò  rÆ  r„   r…   r†   s   @r/   r¿  r¿    s   ø‡ € Ù8÷=ð =r6   r¿  Ú__main__)QrØ  ro  r„  rq   r"   r)   rŸ   rè   r™   r‹  r‘   rÂ  r-  rË  Úpathlibr   Úllvmlite.bindingÚbindingr  Únumpyr  Únumbar   Ú
numba.corer   Únumba.core.cachingr   r   r   r	   r
   Únumba.core.errorsr   r   Únumba.parforsr   Únumba.tests.supportr   r   r   r   r   r   r   r   r   r   Únumba.core.registryr   r½  ÚImportErrorr0   Ú_access_preventableÚ_access_msgrw  rÁ  r5   rA   rF   rK   rQ   rT   rV   ru   r–   rÚ   r  rÇ  rá  rô  r  r4  rA  rj  r}  r‹  r˜  rš  r¿  rp   ÚmainrE   r6   r/   Ú<module>rØ     sç  ðÛ Û Û Û Û 	Û Û Û Û 
Û Û Û Û Û Ý å Û å Ý ÷õ ÷ DÝ  ÷÷ ÷ õ +ðÛò
 ñ> 2Ó3Ð ØI€Ø×%Ò%Ð&9¸;ÓG€òò
òòòò
ô7
�+˜xô 7
òt,ô8A�Hô AôH&. -ô &.ôR{5Ð+ô {5ô|8,Ð.ô 8,ôv#Ð1ô #ð6 ôÐ!<ó ó ðô.Y>Ð9ô Y>ôx0˜Mô 0ð: ôq7˜X×.Ñ.ó q7ó ðq7òhô13¨(×*;Ñ*;ô 13ôh6'�]ô 6'ôr	Ð$ô 	ô=D¨Xô =Dô@= xô =ð0 ˆzÔØ‡M‚M†Oñ øðG( ô ØƒIðús   ÂF+ Æ+	F8Æ7F8