
    Bwg                        d dl Z d dlZddlmZ d dlmZ e j                  j                   G d dej                               Z	e j                  j                   G d dej                               Z
e j                  j                   G d	 d
ej                               Ze j                  j                   G d dej                               Ze j                  j                   G d dej                               Zy)    N   )util)IS_PYPYc                   F    e Zd Z ej                  ddddd      gZdgZd Zy)	TestModuleFilterPublicEntitiestestssrcmodulesgh26920z$two_mods_with_one_public_routine.f90
mod1_func1c                      y N selfs    T/var/www/horilla/myenv/lib/python3.12/site-packages/numpy/f2py/tests/test_modules.pytest_gh26920z+TestModuleFilterPublicEntities.test_gh26920           N__name__
__module____qualname__r   getpathsourcesonlyr   r   r   r   r   r      s4     	UIy2	
G Dr   r   c                   F    e Zd Z ej                  ddddd      gZdgZd Zy)	TestModuleWithoutPublicEntitiesr   r	   r
   r   z$two_mods_with_no_public_entities.f90r   c                      y r   r   r   s    r   r   z,TestModuleWithoutPublicEntities.test_gh26920"   r   r   Nr   r   r   r   r   r      s4     	UIy2	
G Dr   r   c                   ~    e Zd Z ej                  dddd      gZej                  j                  e	d      d        Z
y)	TestModuleDocStringr   r	   r
   zmodule_data_docstring.f90z,PyPy cannot modify tp_doc after PyType_Ready)reasonc                 t    | j                   j                  j                  t        j                  d      k(  sJ y )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   s    r   test_module_docstringz)TestModuleDocString.test_module_docstring+   s2    {{&&(//1+
 
 	
 
r   N)r   r   r   r   r   r   pytestmarkxfailr   r)   r   r   r   r!   r!   '   sD    t||GUI7RSTG[[w'UV	
 W	
r   r!   c                   n    e Zd ZdZ ej
                  ddddd       ej
                  ddddd      gZd Zy	)
TestModuleAndSubroutineexampler   r	   r
   gh25337zdata.f90zuse_data.f90c                     | j                   j                  j                  d       dt        | j                         v sJ y )N   data)r$   r3   	set_shiftdirr   s    r   test_gh25337z$TestModuleAndSubroutine.test_gh25337@   s1    ""1%T[[))))r   N)r   r   r   module_namer   r   r   r6   r   r   r   r.   r.   8   s?    KWeY	:FWeY	>JG
*r   r.   c                   B    e Zd ZdZ ej
                  dddd      gZd Zy)TestUsedModulefmathr   r	   r
   zuse_modules.f90c                     t        | j                        D cg c]	  }d|vs| }}d|v sJ | j                  j                  j                  dd      dk(  sJ d|v sJ | j                  j                  j                  dd      dk(  sJ y c c}w )N__useopsr2         mathops
   )r5   r$   r=   sum_and_doubler@   add)r   xcompiled_modss      r   test_gh25867zTestUsedModule.test_gh25867L   s    $'$4FqAFF=((({{!!00A6"<<<M))){{""&&q!,222	 Gs
   	BBN)r   r   r   r7   r   r   r   rF   r   r   r   r9   r9   E   s(    KWeY0ABG3r   r9   )r*   r'    r   numpy.testingr   r+   slowF2PyTestr   r   r!   r.   r9   r   r   r   <module>rK      s       ! T]]   dmm   
$-- 
 
  	*dmm 	* 	* 3T]] 3 3r   