Ë
    âQ(hû  ã                   ó–   — d Z ddlZddlZddlmZ ej
                  j                   eej                  d«       d¬«      Z	 G d„ d«      Z
y)	z"
Check the SciPy config is valid.
é    N)ÚpatchÚ_built_with_mesonzRequires Meson builds)Úreasonc                   ót   — e Zd Zg d¢Zej
                  j                   ed«      d„ «       «       Zd„ Z	d„ Z
d„ Zy)ÚTestSciPyConfigs)Ú	CompilerszMachine InformationzPython Informationzscipy.__config__._check_pyyamlc                 ó¦   — t        «       |_        t        j                  t        «      5  t        j                  «        d d d «       y # 1 sw Y   y xY w)N)ÚModuleNotFoundErrorÚside_effectÚpytestÚwarnsÚUserWarningÚscipyÚshow_config)ÚselfÚmock_yaml_importers     úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/scipy/_lib/tests/test_config.pyÚtest_pyyaml_not_foundz&TestSciPyConfigs.test_pyyaml_not_found   s=   € ô *=Ó)>ÐÔ&Ü�\‰\œ+Ó&ñ 	 Ü×ÑÔ÷	 ÷ 	 ñ 	 ús   ©AÁAc                 ó¶   — t        j                  d¬«      }t        |t        «      sJ ‚t	        | j
                  D �cg c]  }||v ‘Œ c}«      sJ d«       ‚y c c}w )NÚdicts©ÚmodezFRequired key missing, see index of `False` with `REQUIRED_CONFIG_KEYS`)r   r   Ú
isinstanceÚdictÚallÚREQUIRED_CONFIG_KEYS)r   ÚconfigÚkeys      r   Útest_dict_modezTestSciPyConfigs.test_dict_mode   sU   € Ü×"Ñ"¨Ô0ˆä˜&¤$Ô'Ð'Ð'Ü¨T×-FÑ-FÖG c�C˜6’MÒGÔHð 	
ð@ó	
ÑHùÒGs   ¼Ac                 óŒ   — t        j                  t        «      5  t        j                  d¬«       d d d «       y # 1 sw Y   y xY w)NÚfoor   )r   ÚraisesÚAttributeErrorr   r   ©r   s    r   Útest_invalid_modez"TestSciPyConfigs.test_invalid_mode%   s1   € Ü�]‰]œ>Ó*ñ 	*Ü×Ñ 5Õ)÷	*÷ 	*ñ 	*ús	   š:ºAc                 ó^   — t        t        j                  j                  «      dk(  sJ d«       ‚y )Né   zGNew mode detected, please add UT if applicable and increment this count)Úlenr   Ú
__config__ÚDisplayModesr$   s    r   Útest_warn_to_add_testsz'TestSciPyConfigs.test_warn_to_add_tests)   s.   € Ü”5×#Ñ#×0Ñ0Ó1°QÒ6ð 	
ðDó	
Ñ6ó    N)Ú__name__Ú
__module__Ú__qualname__r   r   ÚmarkÚthread_unsafer   r   r   r%   r+   © r,   r   r   r      sE   „ òÐð ‡[�[×ÑÙ
Ð+Ó,ñ ó -ó ð ò

ò*ó
r,   r   )Ú__doc__r   r   Úunittest.mockr   r0   ÚskipifÚhasattrr)   Ú
pytestmarkr   r2   r,   r   ú<module>r8      sO   ðñó Û Ý à�[‰[×ÑÙ�× Ñ Ð"5Ó6Ð6Ø"ð  ó €
÷
ò 
r,   