a
    LfR                     @   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   a/var/www/ai-form-bot/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   