
    Lpf                        d Z ddlZddlZddlmZmZ ddlmZ ej        j	        dk    Z
dZdZdZd	Zeeed
ZdZd Zd Zd Zej                            e
d          d             Zej                            e
d          d             ZdS )z@ Some tests for the documenting decorator and support functions     N)assert_equalsuppress_warnings)doccer   zBDocstring
    %(strtest1)s
        %(strtest2)s
     %(strtest3)s
z Another test
   with some indentzAnother test, one linez(    Another test
       with some indent)strtest1strtest2strtest3z|Docstring
    Another test
       with some indent
        Another test, one line
     Another test
       with some indent
c                     t                      5 } |                     t                     t          t	          j        t                    t                     t          t	          j        t                    t                     t          t	          j        t                    t                     d d d            d S # 1 swxY w Y   d S )Ncategory)	r   filterDeprecationWarningr   r   unindent_string
param_doc1
param_doc2
param_doc3)sups    \/var/www/html/nettyfy-visnx/env/lib/python3.11/site-packages/scipy/misc/tests/test_doccer.pytest_unindentr   +   s    			 E

.
///V+J77DDDV+J77DDDV+J77DDD	E E E E E E E E E E E E E E E E E Es   B B<<C C c                     t                      5 } |                     t                     t          j        t
                    }d d d            n# 1 swxY w Y   t          |d         t
          d                    t          |d         t
          d                    t          |d         t
          d                    d S )Nr   r   r   r	   )r   r   r   r   unindent_dictdoc_dictr   )r   d2s     r   test_unindent_dictr   3   s    			 ,

.
///!(++, , , , , , , , , , , , , , , J*!5666J*!5666J*!566666s   5AAAc                  r   t                      5 } |                     t                     t          j        t
                    }t          j        t          |          }t          |t                     d}t          j        |t
                    }t          |d           d d d            d S # 1 swxY w Y   d S )Nr   zSingle line doc %(strtest1)sz0Single line doc Another test
   with some indent)
r   r   r   r   r   r   	docformat	docstringr   filled_docstring)r   udd	formatted
single_docs       r   test_docformatr"   <   s    			 


.
///"8,,$Y44	Y 01113
$Z::	 	Y ! 	 	 	
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   BB,,B03B0zdocstrings stripped)reasonc                  r   t                      5 } |                     t                     t          j        t
          d          }|d             }t          |j        d           t          j        t
          d          }|d             }t          |j        d           d d d            d S # 1 swxY w Y   d S )Nr   Tc                      dS z0 Docstring
            %(strtest3)s
            N r(       r   funcztest_decorator.<locals>.funcQ         r)   zP Docstring
            Another test
               with some indent
            Fc                      dS r'   r(   r(   r)   r   r*   ztest_decorator.<locals>.func^   r+   r)   zX Docstring
                Another test
                   with some indent
            )r   r   r   r   filldocr   r   __doc__)r   	decoratorr*   s      r   test_decoratorr0   J   s   			 

.
///N8T22			 	 
	 	T\ $ 	 	 	 N8U33			 	 
	 	T\ $ 	 	 	/                 r#   c                     t                      5 } |                     t                      G d d           G fdd          }d d d            n# 1 swxY w Y   t          |j        j        j        j        dz              t          |j        j        j        j                    |            }t          |j        j        j        j        dz              t          |j        j        j        j                   d S )Nr   c                       e Zd Zd Zd ZdS )(test_inherit_docstring_from.<locals>.Fooc                     dS )zDo something useful.Nr(   selfs    r   r*   z-test_inherit_docstring_from.<locals>.Foo.funcp   s    r)   c                     dS )zSomething else.Nr(   r5   s    r   func2z.test_inherit_docstring_from.<locals>.Foo.func2t   r+   r)   N)__name__
__module____qualname__r*   r8   r(   r)   r   Foor3   o   s2          & & & & &r)   r<   c                   t    e Zd Z ej                   d             Z ej                   d             ZdS )(test_inherit_docstring_from.<locals>.Barc                     dS )z%(super)sABCNr(   r5   s    r   r*   z-test_inherit_docstring_from.<locals>.Bar.funcx   	     r)   c                     d S )Nr(   r5   s    r   r8   z.test_inherit_docstring_from.<locals>.Bar.func2}   r@   r)   N)r9   r:   r;   r   inherit_docstring_fromr*   r8   )r<   s   r   Barr>   w   se        *V*3//  0/ +V*3//  0/  r)   rC   ABC)r   r   r   r   r*   r.   r8   )r   rC   barr<   s      @r   test_inherit_docstring_fromrF   i   sY    
		 

.
///	& 	& 	& 	& 	& 	& 	& 	&		 		 		 		 		 		 		# 		 		 		              , !38#3e#;<<<"CI$5666
#%%C!38#3e#;<<<"CI$566666s   9AAA)r.   syspytestnumpy.testingr   r   
scipy._libr   flagsoptimizeDOCSTRINGS_STRIPPEDr   r   r   r   r   r   r   r   r"   markskipifr0   rF   r(   r)   r   <module>rP      sD   F F 



  9 9 9 9 9 9 9 9       i(1,  
 
    "!!# #
 E E E7 7 7   '0EFF  GF< '0EFF7 7 GF7 7 7r)   