o
    Df                      @   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   V/home/ubuntu/webapp/venv/lib/python3.10/site-packages/numpy/f2py/tests/test_modules.pytest_module_docstring   s   z)TestModuleDocString.test_module_docstringN)__name__
__module____qualname__r   getpathsources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      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>.   s    z/TestUsedModule.test_gh25867.<locals>.<listcomp>useopsr         mathops
   )r"   r
   r+   sum_and_doubler.   add)r   compiled_modsr   r   r   test_gh25867-   s
   zTestUsedModule.test_gh25867N)r   r   r   r$   r   r   r   r3   r   r   r   r   r%   &   s
    r%   )r   r    r   numpy.testingr   r   slowF2PyTestr   r   r%   r   r   r   r   <module>   s    