bgdZddlZddlZddlmZmZeje ej d dZ GddZ dS) z" Check the numpy config is valid. N)Mockpatch_built_with_mesonzRequires Meson builds)reasoncPeZdZgdZeddZdZdZdZdS)TestNumPyConfigs) CompilerszMachine InformationzPython Informationznumpy.__config__._check_pyyamlct|_tjt5t jddddS#1swxYwYdS)N)ModuleNotFoundError side_effectpytestwarns UserWarningnp show_config)selfmock_yaml_importers p/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib64/python3.11/site-packages/numpy/tests/test_numpy_config.pytest_pyyaml_not_foundz&TestNumPyConfigs.test_pyyaml_not_founds)<)>)>& \+ & &   N                     sAAActjdttsJt fd|jDs JddS)Ndictsmodecg|]}|vSr).0keyconfigs r z3TestNumPyConfigs.test_dict_mode..sGGGcC6MGGGzFRequired key missing, see index of `False` with `REQUIRED_CONFIG_KEYS`)rr isinstancedictallREQUIRED_CONFIG_KEYS)rrs @rtest_dict_modezTestNumPyConfigs.test_dict_modesuW---&$'''''GGGGT-FGGGHH   @  H  r ctjt5tjdddddS#1swxYwYdS)Nfoor)r raisesAttributeErrorrrrs rtest_invalid_modez"TestNumPyConfigs.test_invalid_mode$s ]> * * ' ' N & & & & ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' 's=AAc^ttjjdks JddS)NzGNew mode detected, please add UT if applicable and increment this count)lenr __config__ DisplayModesr*s rtest_warn_to_add_testsz'TestNumPyConfigs.test_warn_to_add_tests(s42=-..!333 D43333r N) __name__ __module__ __qualname__r$rrr%r+r1rr rrrsz  U +,,-,    '''     r r) __doc__numpyrr unittest.mockrrmarkskipifhasattrr/ pytestmarkrrr rr<s %%%%%%%% [   2333 "            r