U
    9%e                     @   s<   d dl Z d dlZd dlZd dlmZ d dlmZ dd ZdS )    N)__version__)_openmp_parallelism_enabledc                  C   sH   t drtd tdr"dnd} td| }t	 sDt
|d S )NZSKLEARN_SKIP_OPENMP_TESTz2test explicitly skipped (SKLEARN_SKIP_OPENMP_TEST)z.dev0devZstablea  
        This test fails because scikit-learn has been built without OpenMP.
        This is not recommended since some estimators will run in sequential
        mode instead of leveraging thread-based parallelism.

        You can find instructions to build scikit-learn with OpenMP at this
        address:

            https://scikit-learn.org/{}/developers/advanced_installation.html

        You can skip this test by setting the environment variable
        SKLEARN_SKIP_OPENMP_TEST to any value.
        )osgetenvpytestskipr   endswithtextwrapdedentformatr   AssertionError)base_urlerr_msg r   W/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/sklearn/tests/test_build.pytest_openmp_parallelism_enabled
   s    


r   )r   r
   r   Zsklearnr   Zsklearn.utils._openmp_helpersr   r   r   r   r   r   <module>   s
   