a
    ç´«jR  ã                   @   sn   d dl mZ d dlZd dlZddlmZ d dlmZ d dlm	Z	 ej
je	dd�ej
jG d	d
„ d
ejƒƒƒZdS )é    )ÚPathNé   )Úutil)Úcrackfortran)ÚIS_WASMzCannot start subprocess)Úreasonc                   @   s6   e Zd Ze dddd¡gZddgZdd„ Zd	d
„ ZdS )ÚTestAbstractInterfaceÚtestsÚsrcÚabstract_interfacezfoo.f90Zadd1Zadd2c                 C   s   | j j dd¡dksJ ‚d S )Né   é   )é   é   )ÚmoduleZ
ops_moduleZfoo)Úself© r   úg/var/www/html/laksyashrimp/venv/lib/python3.9/site-packages/numpy/f2py/tests/test_abstract_interface.pyÚtest_abstract_interface   s    z-TestAbstractInterface.test_abstract_interfacec                 C   sh   t  dddd¡}t t|ƒg¡}t|ƒdks0J ‚t|d d ƒdksHJ ‚|d d d d d	ksdJ ‚d S )
Nr	   r
   r   zgh18403_mod.f90r   r   ÚbodyÚblockzabstract interface)r   Úgetpathr   ÚstrÚlen)r   ZfpathÚmodr   r   r   Útest_parse_abstract_interface   s    
ÿz3TestAbstractInterface.test_parse_abstract_interfaceN)	Ú__name__Ú
__module__Ú__qualname__r   r   ÚsourcesÚskipr   r   r   r   r   r   r   	   s   r   )Úpathlibr   ZpytestÚtextwrapÚ r   Z
numpy.f2pyr   Znumpy.testingr   ÚmarkZskipifZslowZF2PyTestr   r   r   r   r   Ú<module>   s   