K idZddlmZddlZddlZej jeejd dZ GddZ y) z" Check the numpy config is valid. )patchN_built_with_mesonzRequires Meson builds)reasoncBeZdZgdZeddZdZdZdZy)TestNumPyConfigs) CompilerszMachine InformationzPython Informationznumpy.__config__._check_pyyamlct|_tjt5t j dddy#1swYyxYwN)ModuleNotFoundError side_effectpytestwarns UserWarningnp show_config)selfmock_yaml_importers c/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/numpy/tests/test_numpy_config.pytest_pyyaml_not_foundz&TestNumPyConfigs.test_pyyaml_not_founds9)<)>& \\+ &  NN    s AActjdttsJt fd|j DsJdy)Ndictsmodec3&K|]}|v ywr ).0keyconfigs r z2TestNumPyConfigs.test_dict_mode..!sFS3&=FszFRequired key missing, see index of `False` with `REQUIRED_CONFIG_KEYS`)rr isinstancedictallREQUIRED_CONFIG_KEYS)rrs @rtest_dict_modezTestNumPyConfigs.test_dict_modesHW-&$'''FD,E,EFF  @ Fctjt5tjddddy#1swYyxYw)Nfoor)r raisesAttributeErrorrrrs rtest_invalid_modez"TestNumPyConfigs.test_invalid_mode&s/ ]]> * ' NN & ' ' 's :Ac^ttjjdk(sJdy)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*s,2==--.!3  D 3r%N) __name__ __module__ __qualname__r#rrr$r+r1rr%rrrs3  +,-  ' r%r) __doc__ unittest.mockrr numpyrmarkskipifhasattrr/ pytestmarkrrr%rr<sM  [[   233 "    r%