a
    ç´«j   ã                   @   sz   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dS )é    Né   )Úutil)ÚIS_PYPYc                   @   s6   e Zd Ze dddd¡gZejje	dd�dd„ ƒZ
d	S )
ÚTestModuleDocStringÚtestsÚsrcÚmodulesz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Údedent©Úself© r   ú\/var/www/html/laksyashrimp/venv/lib/python3.9/site-packages/numpy/f2py/tests/test_modules.pyÚtest_module_docstring   s    ÿz)TestModuleDocString.test_module_docstringN)Ú__name__Ú
__module__Ú__qualname__r   ÚgetpathÚsourcesÚpytestÚmarkZ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 )ÚTestModuleAndSubroutineZexampler   r   r   Zgh25337zdata.f90zuse_data.f90c                 C   s$   | j j d¡ dt| j ƒv s J ‚d S )Né   Údata)r
   r   Z	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      s
   þr   c                   @   s*   e Zd ZdZe dddd¡gZdd„ ZdS )	ÚTestUsedModuleZfmathr   r   r   zuse_modules.f90c                 C   s`   dd„ t | jƒD ƒ}d|v s J ‚| jj dd¡dks8J ‚d|v sDJ ‚| 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>.   ó    z/TestUsedModule.test_gh25867.<locals>.<listcomp>Úuseopsr   é   é   Úmathopsé
   )r   r
   r'   Zsum_and_doubler*   Úadd)r   Zcompiled_modsr   r   r   Útest_gh25867-   s
    zTestUsedModule.test_gh25867N)r   r   r   r    r   r   r   r-   r   r   r   r   r!   &   s   ÿr!   )r   r   Ú r   Znumpy.testingr   r   ZslowZF2PyTestr   r   r!   r   r   r   r   Ú<module>   s   