
    doi6                        S r SSKrSSKrSSKrSSK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)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                     [         R                  " 5          [         R                  " S[        S9  [	        [
        R                  " [        5      [        5        [	        [
        R                  " [        5      [        5        [	        [
        R                  " [        5      [        5        S S S 5        g ! , (       d  f       g = f)Nignorecategory)
warningscatch_warningssimplefilterDeprecationWarningr   r   unindent_string
param_doc1
param_doc2
param_doc3     X/var/www/html/land-ocr/venv/lib/python3.13/site-packages/scipy/_lib/tests/test_doccer.pytest_unindentr   ,   sj    		 	 	"h1CDV++J7DV++J7DV++J7D	 
#	"	"s   BB11
B?c                  L   [         R                  " 5          [         R                  " S[        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   r   r   unindent_dictdoc_dictr   )d2s    r   test_unindent_dictr   4   sx    		 	 	"h1CD!!(+ 
# J*!56J*!56J*!56 
#	"s   4B
B#c                  p   [         R                  " 5          [         R                  " S[        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
   r   zSingle line doc %(strtest1)sz0Single line doc Another test
   with some indent)r   r   r   r   r   r   r   	docformat	docstringr   filled_docstring)udd	formatted
single_docs      r   test_docformatr%   =   s    		 	 	"h1CD""8,$$Y4	Y 013
$$Z:	 	Y ! 	 
#	"	"s   BB''
B5zdocstrings stripped)reasonc                     [         R                  " 5          [         R                  " S[        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
   r   Tc                      gzDocstring
%(strtest3)s
Nr   r   r   r   functest_decorator.<locals>.funcR       r   c                      gz+Docstring
Another test
   with some indent
Nr   r   r   r   expected test_decorator.<locals>.expectedX   r,   r   )      Fc                      gr)   r   r   r   r   r*   r+   f   r,   r   c                      gr.   r   r   r   r   r/   r0   k   r,   r   )r   r   r   r   r   filldocr   r   __doc__sysversion_info)	decoratorr*   r/   s      r   test_decoratorr:   K   s    		 	 	"h1CDNN8T2			 
	
	
 	T\\8#3#34 NN8#&#3#3g#= .3CGI	 
	 
		
 	T\\8#3#34G 
#	"	"s   B<C
C)c                    ^ [         R                  " 5          [         R                  " S[        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
   r   c                        \ rS rSrS rS rSrg)(test_inherit_docstring_from.<locals>.Fooy   c                     g)zDo something useful.Nr   selfs    r   r*   -test_inherit_docstring_from.<locals>.Foo.funcz   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*   rD   __static_attributes__r   r   r   Foor=   y   s    &r   rK   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   rD   .test_inherit_docstring_from.<locals>.Bar.func2   rQ   r   r   N)	rF   rG   rH   rI   r   inherit_docstring_fromr*   rD   rJ   )rK   s   r   BarrM      s?    **3/ 0 **3/ 0r   rU   ABC)r   r   r   r   r   r*   r6   rD   )rU   barrK   s     @r   test_inherit_docstring_fromrX   s   s     
	 	 	"h1CD	& 	&		# 		 
#, !!388#3#3e#;<""CII$5$56
%C!!388#3#3e#;<""CII$5$565 
#	"s   2D//
D=)r6   r7   r   pytestnumpy.testingr   
scipy._libr   flagsoptimizeDOCSTRINGS_STRIPPEDr    r   r   r   r   r!   r   r   r%   markskipifr:   rX   r   r   r   <module>ra      s    F 
   &  ii((1,  
 
    "!!#
 E7 '0EF$5 G$5N '0EF7 G7r   