ó
    oñ:i6  ã                   óÌ  • S r SSKrSSKrSSKrSSKrSSKJr  SSKJrJ	r	   SSK
r
\" \S5      r\R                  " S5      =(       a    \R                  " 5       (       + r SSKrS r SS	KJr  S
 rS r\	" \SL SS9r\	" \R2                  R5                  S5      (       + SS9r\	" \
SL SS9r\	" \
SLSS9rg! \ a    Sr
 N˜f = f! \ a    S rSr Nif = f! \ a
    S rS=rr Nof = f)z
Small utilities for testing.
é    N)Úmp)ÚSkipTestÚskipifÚpypy_version_infoÚPy_GIL_DISABLEDc                 ó   • U $ )ú*A decorator to skip tests requiring numpy.© ©Úfuncs    ÚU/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/joblib/test/common.pyÚ
with_numpyr      ó   € àˆó    c                 ó   • S nU$ )r	   c                  ó   • [        S5      e)NzTest requires numpy©r   r
   r   r   Úmy_funcÚwith_numpy.<locals>.my_func%   s   € ÜÐ0Ó1Ð1r   r
   )r   r   s     r   r   r   "   s   € ò	2ð ˆr   )Úmemory_usagec                 ó   • U $ )ú4A decorator to skip tests requiring memory_profiler.r
   r   s    r   Úwith_memory_profilerr   3   r   r   c                 ór   • [         R                  " 5         [        XU4SS9n[        U5      [	        U5      -
  $ )z)Compute memory usage when executing func.gü©ñÒMbP?)Úinterval)ÚgcÚcollectr   ÚmaxÚmin)r   ÚargsÚkwargsÚmem_uses       r   Úmemory_usedr#   7   s/   € ä
�
Š
ŒÜ ¨FÐ3¸eÑDˆÜ�7‹|œc '›lÑ*Ð*r   c                 ó   • S nU$ )r   c                  ó   • [        S5      e)NzTest requires memory_profiler.r   r
   r   r   Ú
dummy_funcÚ(with_memory_profiler.<locals>.dummy_funcB   s   € ÜÐ;Ó<Ð<r   r
   )r   r&   s     r   r   r   ?   s   € ò	=ð Ðr   zNeeds multiprocessing to run.)Úreasonz/dev/shmz5This test requires a large /dev/shm shared memory fs.zNeeds lz4 compression to runz$Needs lz4 not being installed to run)Ú__doc__r   ÚosÚsysÚ	sysconfigÚjoblib._multiprocessing_helpersr   Újoblib.testingr   r   Úlz4ÚImportErrorÚhasattrÚIS_PYPYÚget_config_varÚ_is_gil_enabledÚIS_GIL_DISABLEDÚnumpyÚnpr   Úmemory_profilerr   r   r#   Úwith_multiprocessingÚpathÚexistsÚwith_dev_shmÚwith_lz4Úwithout_lz4r
   r   r   Ú<module>r?      s'  ðñó 
Û 	Û 
Û å .ß +ðÛñ
 �#Ð*Ó
+€à×ÒÐ.Ó/×M¸×8KÒ8KÓ8MÔ4Mð ð
Ûòð(&Ý,òò+ñ& ˜b D˜jÐ1PÑQÐ ñ Ø
�‰�‰�zÓ"Ô"ØBñ€ñ
 �#˜�+Ð&DÑE€á�S �_Ð-SÑT�øðK ó Ø
‚Cðûð" ó 
òð 
‚Bð
ûð: ó 
&òð "&Ð%€L’;ð
&ús5   ¢B4 ÁC Á'C Â4B?Â>B?ÃCÃCÃC#Ã"C#