3
Kd                 @   s   d dl Z d dlZddlmZ d dlmZ ejje j dkddG dd	 d	ej	Z
ejje j dkddG d
d dej	ZdS )    N   )util)assert_equalDarwinzVProne to error when run with numpy/f2py/tests on mac os, but not when run in isolation)reasonc               @   s(   e Zd ZdZdZdjedZdd ZdS )TestMultilinez.pyf	multilinea  
python module {module}
    usercode '''
void foo(int* x) {{
    char dummy = ';';
    *x = 42;
}}
'''
    interface
        subroutine foo(x)
            intent(c) foo
            integer intent(out) :: x
        end subroutine foo
    end interface
end python module {module}
    )modulec             C   s   t | jj d d S )N*   )r   r	   foo)self r   Y/var/www/html/virt/lib64/python3.6/site-packages/numpy/f2py/tests/test_semicolon_split.pytest_multiline   s    zTestMultiline.test_multilineN)__name__
__module____qualname__suffixmodule_nameformatcoder   r   r   r   r   r      s   r   c               @   s(   e Zd ZdZdZdjedZdd ZdS )TestCallstatementz.pyfZcallstatementav  
python module {module}
    usercode '''
void foo(int* x) {{
}}
'''
    interface
        subroutine foo(x)
            intent(c) foo
            integer intent(out) :: x
            callprotoargument int*
            callstatement {{ &
                ; &
                x = 42; &
            }}
        end subroutine foo
    end interface
end python module {module}
    )r	   c             C   s   t | jj d d S )Nr
   )r   r	   r   )r   r   r   r   test_callstatement>   s    z$TestCallstatement.test_callstatementN)r   r   r   r   r   r   r   r   r   r   r   r   r   #   s   r   )platformZpytest r   Znumpy.testingr   markZskipifsystemZF2PyTestr   r   r   r   r   r   <module>   s   


