+
    ei  c                   s    R t ^ RIHt ^ RIt^ RIt]P                  P                  ]! ]P                  R4      '       * RR7      t
 ! R R4      tR# )z"
Check the numpy config is valid.
)patchNZ_built_with_mesonzRequires Meson builds)Zreasonc                   sV   a  ] tR t^t o . ROt]! R4      R 4       tR tR tR t	Rt
V tR# )	TestNumPyConfigsznumpy.__config__._check_pyyamlc                s    \        4       Vn        \        P                  ! \        4      ;_uu_ 4        \
        P                  ! 4        R R R 4       R #   + '       g   i     R # ; iN)ZModuleNotFoundErrorZside_effectpytestZwarnsZUserWarningnpshow_config)selfZmock_yaml_importers   &&D/usr/lib64/python3.14/site-packages/numpy/tests/test_numpy_config.pytest_pyyaml_not_foundZ&TestNumPyConfigs.test_pyyaml_not_found   s6    )<)>&\\+&&NN '&&&s   AA#	c                s  a \         P                  ! R R7      o\        S\        4      '       g   Q h\        ;QJ d)    V3R lV P
                   4       F  '       d   K   RM	  RM! V3R lV P
                   4       4      '       g   Q R4       hR# )ZdictsZmodec              3   s,   <"   T F	  qS9   x  K  	  R # 5ir    )Z.0Zkeyconfigs   & r   Z	<genexpr>Z2TestNumPyConfigs.test_dict_mode.<locals>.<genexpr>!   s     F,ES&=,Es   FTzFRequired key missing, see index of `False` with `REQUIRED_CONFIG_KEYS`N)r   r   Z
isinstanceZdictZallREQUIRED_CONFIG_KEYS)r   r   s   &@r   test_dict_modeZTestNumPyConfigs.test_dict_mode   sd    W-&$''''sFD,E,EFsssFD,E,EFFF 	
@	
F    c                s    \         P                  ! \        4      ;_uu_ 4        \        P                  ! R R7       RRR4       R#   + '       g   i     R# ; i)Zfoor	   N)r   ZraisesZAttributeErrorr   r   r      &r   test_invalid_modeZ"TestNumPyConfigs.test_invalid_mode&   s,    ]]>**NN& +***s   AA	c                sd    \        \        P                  P                  4      ^8X  g   Q R4       hR# )i   zGNew mode detected, please add UT if applicable and increment this countN)Zlenr   
__config__ZDisplayModesr   r   r   test_warn_to_add_testsZ'TestNumPyConfigs.test_warn_to_add_tests*   s,    2==--.!3 	
D	
3r   r
   N)Z	CompilerszMachine InformationzPython Information)Z__name__Z
__module__Z__qualname__Z__firstlineno__r   r    r   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s;      +, -

'
 
r   r   )Z__doc__Zunittest.mockr    r   Znumpyr   ZmarkZskipifZhasattrr   Z
pytestmarkr   r
   r   r   <module>r      sM       [[233"   

 
r   