a
    hÝEb  ã                   @   st   d dl Z d dlZd dlZd dlmZmZmZmZ ddl	m
Z
 dd„ ZG dd„ de
jƒZG d	d
„ d
e
jƒZdd„ ZdS )é    N)Úassert_Úassert_raisesÚassert_equalÚassert_string_equalé   )Úutilc                  G   s   t jjt j t¡f|  Ž S )N)ÚosÚpathÚjoinÚdirnameÚ__file__)Úa© r   ú`/home/ja/django-apps/lartica_env/lib/python3.9/site-packages/numpy/f2py/tests/test_regression.pyÚ_path
   s    r   c                   @   s*   e Zd ZedddƒgZejjdd„ ƒZdS )ÚTestIntentInOutÚsrcÚ
regressionú	inout.f90c                 C   sX   t jdt jd�d d d… }tt| jj|ƒ t jdt jd�}| j |¡ t|g d¢ƒ d S )Né   )Zdtypeé   é   )r   r   r   )ÚnpZarangeZfloat32r   Ú
ValueErrorÚmoduleZfoor   )ÚselfÚxr   r   r   Ú
test_inout   s
    zTestIntentInOut.test_inoutN)	Ú__name__Ú
__module__Ú__qualname__r   ÚsourcesÚpytestÚmarkÚslowr   r   r   r   r   r      s   r   c                   @   s*   e Zd ZedddƒgZejjdd„ ƒZdS )ÚTestNumpyVersionAttributer   r   r   c                 C   s>   t t| jdƒdd� t t| jjtƒdd� ttj| jjƒ d S )NÚ__f2py_numpy_version__z3Fortran module does not have __f2py_numpy_version__)Úmsgz&__f2py_numpy_version__ is not a string)	r   Úhasattrr   Ú
isinstancer&   Ústrr   r   Ú__version__)r   r   r   r   Útest_numpy_version_attribute#   s    ÿÿz6TestNumpyVersionAttribute.test_numpy_version_attributeN)	r   r   r    r   r!   r"   r#   r$   r,   r   r   r   r   r%      s   r%   c                  C   s.   t j ¡ } t | ¡}dD ]}||v sJ ‚qd S )N)zfortranobject.czfortranobject.h)r   Zf2pyZget_includer   Úlistdir)ÚincdirZfnames_in_dirÚfnamer   r   r   Útest_include_path2   s    

r0   )r   r"   Únumpyr   Znumpy.testingr   r   r   r   Ú r   r   ZF2PyTestr   r%   r0   r   r   r   r   Ú<module>   s   