o
    6a                     @   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   B/usr/lib/python3/dist-packages/numpy/f2py/tests/test_regression.py_path
   s   r   c                   @   *   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   )dtype      )r   r   r   )nparangefloat32r   
ValueErrormodule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                   @   r   )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)   r1   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   f2pyget_includer   listdir)incdirfnames_in_dirfnamer   r   r   test_include_path2   s
   

r8   )r   r'   numpyr   numpy.testingr   r   r   r    r   r   F2PyTestr   r*   r8   r   r   r   r   <module>   s    