Ë
    Ï�Dj 	  ã                   óv  — d Z ddlZddlZddlZddlmZ ddlmZmZ 	 ddl	Z	 eed«      Z	 ddlZd„ Z	 ddlmZ d	„ Zd
„ Zd„ Z eedu d¬«      Z eej,                  j/                  d«       d¬«      Z ee	du d¬«      Z ee	dud¬«      Zy# e
$ r dZ	Y Œsw xY w# e
$ r d„ ZdZY Œrw xY w# e
$ r
 d„ ZdxZZY Œww xY w)z
Small utilities for testing.
é    N)Úmp)ÚSkipTestÚskipifÚpypy_version_infoc                 ó   — | S )ú*A decorator to skip tests requiring numpy.© ©Úfuncs    úVC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\joblib/test/common.pyÚ
with_numpyr      ó   € àˆó    c                 ó   — d„ }|S )r   c                  ó   — t        d«      ‚)NzTest requires numpy©r   r	   r   r   Úmy_funczwith_numpy.<locals>.my_func   s   € ÜÐ0Ó1Ð1r   r	   )r   r   s     r   r   r      s   € ò	2àˆr   )Úmemory_usagec                 ó   — | S )ú4A decorator to skip tests requiring memory_profiler.r	   r
   s    r   Úwith_memory_profilerr   )   r   r   c                 óx   — t        j                  «        t        | ||fd¬«      }t        |«      t	        |«      z
  S )z)Compute memory usage when executing func.gü©ñÒMbP?)Úinterval)ÚgcÚcollectr   ÚmaxÚmin)r   ÚargsÚkwargsÚmem_uses       r   Úmemory_usedr!   -   s1   € ä
�
‰
ŒÜ  d¨FÐ3¸dÔCˆÜ�7‹|œc '›lÑ*Ð*r   c                 ó   — d„ }|S )r   c                  ó   — t        d«      ‚)NzTest requires memory_profiler.r   r	   r   r   Ú
dummy_funcz(with_memory_profiler.<locals>.dummy_func6   s   € ÜÐ;Ó<Ð<r   r	   )r   r$   s     r   r   r   4   s   € ò	=àÐr   c                  ó^   — t         r'dd l}  | j                  «         | j                  «        y y )Nr   )ÚIS_PYPYr   r   )r   s    r   Úforce_gc_pypyr'   =   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__Úosr   ÚsysÚjoblib._multiprocessing_helpersr   Újoblib.testingr   r   Úlz4ÚImportErrorÚhasattrr&   ÚnumpyÚnpr   Úmemory_profilerr   r   r!   r'   Úwith_multiprocessingÚpathÚexistsÚwith_dev_shmÚwith_lz4Úwithout_lz4r	   r   r   ú<module>r:      s  ðñó 
Û 	Û 
å .ß +ðÛñ �#Ð*Ó
+€ðÛòð &Ý,òò+ò 	ñ Øˆ$€JÐ6ô8Ð ñ Ø
�‰�‰�zÓ"Ð"ØBôD€ñ �#˜�+Ð&DÔE€áØˆt€OÐBôD�øðM ò Ø
‚Cðûð ò òð
 
‚Bðûð2 ò &òð "&Ð%€L’;ð&ús3   žB ¬B ´B) ÂBÂBÂ
B&Â%B&Â)B8Â7B8