Edit File: test_numpy_config.cpython-311.pyc
� ����o�d�����������������������������d�Z�ddlZddlZddlmZmZ�ej������������������������������e ej ��������d�������������d�������������Z�G�d��d������������ZdS�) z" Check the numpy config is valid. �����N)�Mock�patch�_built_with_mesonzRequires Meson builds)�reasonc��������������������P�����e�Zd�Zg�d�Z�ed������������d����������������Zd��Zd��Zd��ZdS�)�TestNumPyConfigs)� CompilerszMachine InformationzPython Informationznumpy.__config__._check_pyyamlc�����������������������t������������������������|_��������t����������j��������t����������������������5��t����������j�����������������������d�d�d��������������d�S�#�1�swxY�w�Y���d�S�)N)�ModuleNotFoundError�side_effect�pytest�warns�UserWarning�np�show_config)�self�mock_yaml_importers��� �p/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib64/python3.11/site-packages/numpy/tests/test_numpy_config.py�test_pyyaml_not_foundz&TestNumPyConfigs.test_pyyaml_not_found���s�������)<�)>�)>��&� �\�+� &� &�� �� ��N���� �� �� �� �� �� �� �� �� �� �� �� ����� �� �� �� �� �� s����A�A�Ac������������������������t����������j��������d��������������t�����������t����������������������sJ��t �����������fd�|�j��������D���������������������������s J�d���������������d�S�)N�dicts��modec������������������������g�|�]}|�v���S���r���)�.0�key�configs��� �r���� <listcomp>z3TestNumPyConfigs.test_dict_mode.<locals>.<listcomp>���s�������G�G�G�c�C�6�M�G�G�G�����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_modezTestNumPyConfigs.test_dict_mode���sw���������W�-�-�-���&�$�'�'�'�'�'��G�G�G�G�T�-F�G�G�G�H�H�� �� � @� �� �� �� �� r ���c�����������������������t����������j��������t����������������������5��t����������j��������d��������������d�d�d��������������d�S�#�1�swxY�w�Y���d�S�)N�foor���)r ����raises�AttributeErrorr���r����r���s��� r����test_invalid_modez"TestNumPyConfigs.test_invalid_mode$���s������� �]�>� *� *�� '�� '��N��&�&�&�&� '�� '�� '�� '�� '�� '�� '�� '�� '�� '�� '�� '����� '�� '�� '�� '�� '�� 's����=�A�Ac������������������^�����t����������t����������j��������j��������������������dk����s J�d���������������d�S�)N����zGNew mode detected, please add UT if applicable and increment this count)�lenr���� __config__�DisplayModesr*���s��� r����test_warn_to_add_testsz'TestNumPyConfigs.test_warn_to_add_tests(���s4�������2�=�-�.�.�!�3�3�3� D��4�3�3�3�3r ���N) �__name__� __module__�__qualname__r$���r���r���r%���r+���r1���r���r ���r���r���r������sz����������������������U�+�,�,�����-�,�� �� �� �'��'��'� �� �� �� �� r ���r���) �__doc__�numpyr���r ���� unittest.mockr���r����mark�skipif�hasattrr/���� pytestmarkr���r���r ���r����<module>r<������s������������������ � � � ��%��%��%��%��%��%��%��%� �[� � ���� �2�3�3�3�"�� ����� � �� �� �� �� �� �� �� �� �� r ���