Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
tests
/
__pycache__
/
File Content:
test_numpy_config.cpython-311.opt-1.pyc
� � h� � � � 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 �R/opt/cloudlinux/venv/lib/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 �2 �� t j d�� � �d S )N�dicts��mode)r r )r �configs @r �test_dict_modezTestNumPyConfigs.test_dict_mode s �� ���W�-�-�-���� 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 � � d S r � r"