Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/numpy/f2py/tests/__pycache__/test_parameter.cpython-39.pyc
Ðазад
a e�he � @ s: d dl Z d dlZd dlZddlmZ G dd� dej�ZdS )� N� )�utilc @ s� e Zd Ze�dddd�e�dddd�e�dddd�e�dddd�e�dddd�gZejjd d � �Z ejjdd� �Z ejjd d� �Zejjdd� �Zejjdd� �Z ejjdd� �Zejjdd� �Zejjdd� �Zejjdd� �ZdS )�TestParametersZtests�srcZ parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90c C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S �N� �Zdtype� � )� r r ) �np�arangeZfloat32�pytest�raises� ValueError�moduleZ foo_single�allclose��self�x� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/numpy/f2py/tests/test_parameter.py�test_constant_real_single s z(TestParameters.test_constant_real_singlec C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S r ) r r �float64r r r r Z foo_doubler r r r r �test_constant_real_double s z(TestParameters.test_constant_real_doublec C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S )Nr r r r )� r r ) r r �int32r r r r Zfoo_compound_intr r r r r �test_constant_compound_int) s z)TestParameters.test_constant_compound_intc C s4 t jdt jd�}| j�|� t �|g d��s0J �d S )N� r )� r r r )r r r r Zfoo_non_compound_intr r r r r �test_constant_non_compound_int4 s z-TestParameters.test_constant_non_compound_intc C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S r ) r r r r r r r Zfoo_intr r r r r �test_constant_integer_int; s z(TestParameters.test_constant_integer_intc C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S r ) r r Zint64r r r r Zfoo_longr r r r r �test_constant_integer_longF s z)TestParameters.test_constant_integer_longc C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S �Nr r r r )� r r ) r r r r r r r Zfoor r r r r �test_constant_bothQ s z!TestParameters.test_constant_bothc C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S r# ) r r r r r r r Zfoo_nor r r r r �test_constant_no\ s zTestParameters.test_constant_noc C s` t jdt jd�d d d� }t�t| jj|� t jdt jd�}| j�|� t �|g d��s\J �d S r# ) r r r r r r r Zfoo_sumr r r r r �test_constant_sumg s z TestParameters.test_constant_sumN)�__name__� __module__�__qualname__r Zgetpath�sourcesr �markZslowr r r r r! r"