
    4i%                         S r SSKJr  SSKrSSKr\R                  R                  \" \R                  S5      (       + SS9r
 " S S5      rg)	z"
Check the numpy config is valid.
    )patchN_built_with_mesonzRequires Meson buildsreasonc                       \ rS rSr/ SQr\" S5      \R                  R                  SS9S 5       5       r	S r
S rS	 rS
rg)TestNumPyConfigs   )	CompilerszMachine InformationzPython Informationznumpy.__config__._check_pyyamlz(unittest.mock.patch updates global stater   c                     [        5       Ul        [        R                  " [        5         [
        R                  " 5         S S S 5        g ! , (       d  f       g = fN)ModuleNotFoundErrorside_effectpytestwarnsUserWarningnpshow_config)selfmock_yaml_importers     _/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/numpy/tests/test_numpy_config.pytest_pyyaml_not_found&TestNumPyConfigs.test_pyyaml_not_found   s2     *=)>&\\+&NN '&&s   A		
Ac                    ^ [         R                  " SS9m[        T[        5      (       d   e[	        U4S jU R
                   5       5      (       d   S5       eg )Ndictsmodec              3   ,   >#    U  H	  oT;   v   M     g 7fr    ).0keyconfigs     r   	<genexpr>2TestNumPyConfigs.test_dict_mode.<locals>.<genexpr>"   s     F,ES&=,Es   zFRequired key missing, see index of `False` with `REQUIRED_CONFIG_KEYS`)r   r   
isinstancedictallREQUIRED_CONFIG_KEYS)r   r!   s    @r   test_dict_modeTestNumPyConfigs.test_dict_mode   sN    W-&$''''FD,E,EFFF 	
@	
F    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"TestNumPyConfigs.test_invalid_mode'   s&    ]]>*NN& +**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'TestNumPyConfigs.test_warn_to_add_tests+   s,    2==--.!3 	
D	
3r*   r   N)__name__
__module____qualname____firstlineno__r'   r   r   markthread_unsafer   r(   r0   r7   __static_attributes__r   r*   r   r   r      sO     +,[[&PQ R -

'
r*   r   )__doc__unittest.mockr   r   numpyr   r=   skipifhasattrr5   
pytestmarkr   r   r*   r   <module>rF      sM       [[233"   

 
r*   