o
    z¨Êhû  ã                   @   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   úO/var/www/html/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    