U
    O8c@                     @   sf   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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td S )N      )      )moduleZ
ops_moduleZfooAssertionError)self r   L/tmp/pip-unpacked-wheel-fd_gsd75/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s0tt|d d dksHt|d d d d d	ksdtd S )
Nr	   r
   r   zgh18403_mod.f90r   r   bodyblockzabstract interface)r   getpathr   strlenr   )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F2PyTestr   r   r   r   r   <module>   s   