
    (ph                         S r SSKrSSKrSSKJr  \R
                  R                  \" \R                  S5      (       + SS9r	 " S S5      r
g)	z"
Check the SciPy config is valid.
    N)patch_built_with_mesonzRequires Meson builds)reasonc                   |    \ rS rSr/ SQr\R                  R                  \" S5      S 5       5       r	S r
S rS rSrg	)
TestSciPyConfigs   )	CompilerszMachine InformationzPython Informationzscipy.__config__._check_pyyamlc                     [        5       Ul        [        R                  " [        5         [
        R                  " 5         S S S 5        g ! , (       d  f       g = f)N)ModuleNotFoundErrorside_effectpytestwarnsUserWarningscipyshow_config)selfmock_yaml_importers     O/var/www/html/venv/lib/python3.13/site-packages/scipy/_lib/tests/test_config.pytest_pyyaml_not_found&TestSciPyConfigs.test_pyyaml_not_found   s4     *=)>&\\+& '&&s   A		
Ac                     [         R                  " SS9n[        U[        5      (       d   e[	        U R
                   Vs/ s H  o"U;   PM	     sn5      (       d   S5       eg s  snf )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_modeTestSciPyConfigs.test_dict_mode   s_    ""0&$''''T-F-FG-Fc6M-FGHH 	
@	
HGs   A!c                     [         R                  " [        5         [        R                  " SS9  S S S 5        g ! , (       d  f       g = f)Nfoor   )r   raisesAttributeErrorr   r   r   s    r   test_invalid_mode"TestSciPyConfigs.test_invalid_mode%   s(    ]]>*5) +**s	   9
Ac                 `    [        [        R                  R                  5      S:X  d   S5       eg )N   zGNew mode detected, please add UT if applicable and increment this count)lenr   
__config__DisplayModesr'   s    r   test_warn_to_add_tests'TestSciPyConfigs.test_warn_to_add_tests)   s.    5##001Q6 	
D	
6     N)__name__
__module____qualname____firstlineno__r   r   markthread_unsafer   r   r!   r(   r/   __static_attributes__r2   r1   r   r   r      sE     [[
+,  -  

*
r1   r   )__doc__r   r   unittest.mockr   r7   skipifhasattrr-   
pytestmarkr   r2   r1   r   <module>r?      sO      [[  "566"   

 
r1   