
    qKg                      @   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y)    N   )util)IS_PYPYc                   ~    e Zd Z ej                  dddd      gZej                  j                  e	d      d        Z
y)	TestModuleDocStringtestssrcmodulesz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dedentselfs    a/home/alanp/www/video.onchill/myenv/lib/python3.12/site-packages/numpy/f2py/tests/test_modules.pytest_module_docstringz)TestModuleDocString.test_module_docstring   s2    {{&&(//1+
 
 	
 
    N)__name__
__module____qualname__r   getpathsourcespytestmarkxfailr   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   r&   	set_shiftdirr   s    r   test_gh25337z$TestModuleAndSubroutine.test_gh25337!   s1    ""1%T[[))))r   N)r   r   r   module_namer   r   r   r)   r   r   r   r!   r!      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__useopsr%         mathops
   )r(   r   r0   sum_and_doubler3   add)r   xcompiled_modss      r   test_gh25867zTestUsedModule.test_gh25867-   s    $'$4F$4qA$4F=((({{!!00A6"<<<M))){{""&&q!,222	 Gs
   	BBN)r   r   r   r*   r   r   r   r9   r   r   r   r,   r,   &   s(    KWeY0ABG3r   r,   )r   r    r   numpy.testingr   r   slowF2PyTestr   r!   r,   r   r   r   <module>r>      s       ! 
$-- 
 
  	*dmm 	* 	* 3T]] 3 3r   