CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
test_backports.cpython-310.pyc18 linesDownload Raw Back to __pycache__
1o

2��Yi��@stddlZddlmZmZddlmZmZddlmZddl	m3Z4edd��Ze5ddd	g�e6d7ddg�dd
���ZdS)�N)�Parallel�delayed)�concurrency_safe_rename�make_memmap)�8with_numpy)�parametrizecCsB|�d�j}dtj}tjd}t||d|d�}|j|ksJ�dS)Nz	test.mmap��zw+)�shape�mode�offset)�join�strpath�mmap�ALLOCATIONGRANULARITYrr)�tmpdir�fname�sizerZ9memmap_obj�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\joblib/test/test_backports.py�test_memmap	s101112r�dst_contentzdst content�backend�	threadingcs��fdd�td�D�}|D]}|�d�q
��d��|dur#��|�td|d��fdd�|D�����s8J����dks@J�|D]}|��rJJ�qBdS)	Ncsg|]	}��d|��qS)zsrc_%d)r
)�.0�i)rrr�13<listcomp>sz0test_concurrency_safe_rename.<locals>.<listcomp>�zsrc content�dst)Zn_jobsrc3s"�|]}tt�|j�j�VqdS)N)rrr)r�src_path)�dst_pathrr�	<genexpr>s14��15�z/test_concurrency_safe_rename.<locals>.<genexpr>)�range�writer
r�exists�read)rrrZ	src_pathsrr)r rr�test_concurrency_safe_renames1617��r&)
rZjoblibrrZjoblib.backportsrrZjoblib.test.commonrZjoblib.testingrrr&rrrr�<module>s18
Aluode/PerceptionLabPortable · CoolFace