o
    >~#g                     @   s   d dl Z d dlZddlmZ d dlmZ e jjG dd dejZ	e jjG dd dejZ
e jjG d	d
 d
ejZe jjG dd dejZe jjG dd dejZdS )    N   )util)IS_PYPYc                   @   .   e Zd ZedddddgZdgZdd Zd	S )
TestModuleFilterPublicEntitiestestssrcmodulesgh26920z$two_mods_with_one_public_routine.f90
mod1_func1c                 C      d S N selfr   r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/numpy/f2py/tests/test_modules.pytest_gh26920      z+TestModuleFilterPublicEntities.test_gh26920N__name__
__module____qualname__r   getpathsourcesonlyr   r   r   r   r   r      s    r   c                   @   r   )
TestModuleWithoutPublicEntitiesr   r   r	   r
   z$two_mods_with_no_public_entities.f90r   c                 C   r   r   r   r   r   r   r   r   "   r   z,TestModuleWithoutPublicEntities.test_gh26920Nr   r   r   r   r   r      s    r   c                   @   s6   e Zd ZeddddgZejje	dddd Z
d	S )
TestModuleDocStringr   r   r	   zmodule_data_docstring.f90z,PyPy cannot modify tp_doc after PyType_Ready)reasonc                 C   s   | j jjtdksJ d S )Nz                     i : 'i'-scalar
                     x : 'i'-array(4)
                     a : 'f'-array(2,3)
                     b : 'f'-array(-1,-1), not allocated 
                     foo()

                     Wrapper for ``foo``.

)modulemod__doc__textwrapdedentr   r   r   r   test_module_docstring+   s   z)TestModuleDocString.test_module_docstringN)r   r   r   r   r   r   pytestmarkxfailr   r#   r   r   r   r   r   '   s    r   c                   @   s<   e Zd ZdZedddddedddddgZdd	 Zd
S )TestModuleAndSubroutineexampler   r   r	   gh25337zdata.f90zuse_data.f90c                 C   s$   | j jd dt| j v sJ d S )N   data)r   r+   	set_shiftdirr   r   r   r   test_gh25337@   s   z$TestModuleAndSubroutine.test_gh25337N)r   r   r   module_namer   r   r   r.   r   r   r   r   r'   8   s    r'   c                   @   s*   e Zd ZdZeddddgZdd ZdS )	TestUsedModulefmathr   r   r	   zuse_modules.f90c                 C   s`   dd t | jD }d|v sJ | jjdddksJ d|v s"J | jjdddks.J d S )	Nc                 S   s   g | ]}d |vr|qS )__r   ).0xr   r   r   
<listcomp>M   s    z/TestUsedModule.test_gh25867.<locals>.<listcomp>useopsr*         mathops
   )r-   r   r6   sum_and_doubler9   add)r   compiled_modsr   r   r   test_gh25867L   s
   zTestUsedModule.test_gh25867N)r   r   r   r/   r   r   r   r>   r   r   r   r   r0   E   s
    r0   )r$   r!    r   numpy.testingr   r%   slowF2PyTestr   r   r   r'   r0   r   r   r   r   <module>   s    