
    (ph                        S r SSKrSSKrSSKJrJr  SSKJr  \R                  R                  S:  r
SrSrSrS	r\\\S
.rSrS rS rS r\R(                  R+                  \
SS9S 5       r\R(                  R+                  \
SS9S 5       rg)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                  b   [        5        n U R                  [        S9  [        [        R
                  " [        5      [        5        [        [        R
                  " [        5      [        5        [        [        R
                  " [        5      [        5        S S S 5        g ! , (       d  f       g = f)Ncategory)	r   filterDeprecationWarningr   r   unindent_string
param_doc1
param_doc2
param_doc3)sups    O/var/www/html/venv/lib/python3.13/site-packages/scipy/_lib/tests/test_doccer.pytest_unindentr   +   sd    		

.
/V++J7DV++J7DV++J7D	 
		s   BB  
B.c                  *   [        5        n U R                  [        S9  [        R                  " [
        5      nS S S 5        [        WS   [
        S   5        [        US   [
        S   5        [        US   [
        S   5        g ! , (       d  f       NQ= f)Nr   r   r   r	   )r   r   r   r   unindent_dictdoc_dictr   )r   d2s     r   test_unindent_dictr   3   sr    		

.
/!!(+ 
 J*!56J*!56J*!56 
	s   .B
Bc                  N   [        5        n U R                  [        S9  [        R                  " [
        5      n[        R                  " [        U5      n[        U[        5        Sn[        R                  " U[
        5      n[        US5        S S S 5        g ! , (       d  f       g = f)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"   <   sz    		

.
/""8,$$Y4	Y 013
$$Z:	 	Y ! 	 
		s   BB
B$zdocstrings stripped)reasonc                     [        5        n U R                  [        S9  [        R                  " [
        S5      nUS 5       nS n[        UR                  UR                  5        [        R                  " [
        [        R                  S:  a  SOS5      nUS 5       nS n[        UR                  UR                  5        S S S 5        g ! , (       d  f       g = f)	Nr   Tc                      gzDocstring
%(strtest3)s
N r'       r   functest_decorator.<locals>.funcQ       r(   c                      gz+Docstring
Another test
   with some indent
Nr'   r'   r(   r   expected test_decorator.<locals>.expectedW   r+   r(   )      Fc                      gr&   r'   r'   r(   r   r)   r*   e   r+   r(   c                      gr-   r'   r'   r(   r   r.   r/   j   r+   r(   )
r   r   r   r   filldocr   r   __doc__sysversion_info)r   	decoratorr)   r.   s       r   test_decoratorr9   J   s    		

.
/NN8T2			 
	
	
 	T\\8#3#34 NN8#&#3#3g#= .3CGI	 
	 
		
 	T\\8#3#34G 
		s   B6C


Cc                  ^  ^ [        5        n U R                  [        S9   " S S5      m " U4S jST5      nS S S 5        [        WR                  R
                  TR                  R
                  S-   5        [        UR                  R
                  TR                  R
                  5        U" 5       n[        UR                  R
                  TR                  R
                  S-   5        [        UR                  R
                  TR                  R
                  5        g ! , (       d  f       N= f)Nr   c                        \ rS rSrS rS rSrg)(test_inherit_docstring_from.<locals>.Foox   c                     g)zDo something useful.Nr'   selfs    r   r)   -test_inherit_docstring_from.<locals>.Foo.funcy   s    r(   c                     g)zSomething else.Nr'   r?   s    r   func2.test_inherit_docstring_from.<locals>.Foo.func2}   r+   r(   r'   N)__name__
__module____qualname____firstlineno__r)   rC   __static_attributes__r'   r(   r   Foor<   x   s    &r(   rJ   c                   z   > \ rS rSr\R
                  "  Y 5      S 5       r\R
                  "  Y 5      S 5       rSrg)(test_inherit_docstring_from.<locals>.Bar   c                     g)z%(super)sABCNr'   r?   s    r   r)   -test_inherit_docstring_from.<locals>.Bar.func        r(   c                     g )Nr'   r?   s    r   rC   .test_inherit_docstring_from.<locals>.Bar.func2   rP   r(   r'   N)	rE   rF   rG   rH   r   inherit_docstring_fromr)   rC   rI   )rJ   s   r   BarrL      s?    **3/ 0 **3/ 0r(   rT   ABC)r   r   r   r   r)   r5   rC   )r   rT   barrJ   s      @r   test_inherit_docstring_fromrW   r   s     
	

.
/	& 	&		# 		 
, !!388#3#3e#;<""CII$5$56
%C!!388#3#3e#;<""CII$5$565 
	s   ,D
D,)r5   r6   pytestnumpy.testingr   r   
scipy._libr   flagsoptimizeDOCSTRINGS_STRIPPEDr   r   r   r   r   r   r   r   r"   markskipifr9   rW   r'   r(   r   <module>r`      s    F 
  9  ii((1,  
 
    "!!#
 E7 '0EF$5 G$5N '0EF7 G7r(   