+
    ,i                     *   R t ^ RIt^ RIt^ RIHtHt ^ RIHt ]P                  P                  ^8  t
RtRtRtRtR]R	]R
]/tRtR tR tR t]P(                  P+                  ]
RR7      R 4       t]P(                  P+                  ]
RR7      R 4       tR# )z?Some tests for the documenting decorator and support functions N)assert_equalsuppress_warnings)doccerzBDocstring
    %(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                     \        4       ;_uu_ 4       p V P                  \        R 7       \        \        P
                  ! \        4      \        4       \        \        P
                  ! \        4      \        4       \        \        P
                  ! \        4      \        4       RRR4       R#   + '       g   i     R# ; i)categoryN)	r   filterDeprecationWarningr   r   unindent_string
param_doc1
param_doc2
param_doc3)sups    >/usr/lib/python3/dist-packages/scipy/_lib/tests/test_doccer.pytest_unindentr   +   sj    			

.
/V++J7DV++J7DV++J7D	 
			s   BB,,B=	c                  v   \        4       ;_uu_ 4       p V P                  \        R 7       \        P                  ! \
        4      pRRR4       \        XR,          \
        R,          4       \        VR,          \
        R,          4       \        VR,          \
        R,          4       R#   + '       g   i     Ll; i)r	   Nr   r   r   )r   r   r   r   unindent_dictdoc_dictr   )r   d2s     r   test_unindent_dictr   3   su    			

.
/!!(+ 
 J*!56J*!56J*!56 
	s   1B((B8	c                  l   \        4       ;_uu_ 4       p V P                  \        R 7       \        P                  ! \
        4      p\        P                  ! \        V4      p\        V\        4       Rp\        P                  ! V\
        4      p\        VR4       RRR4       R#   + '       g   i     R# ; i)r	   zSingle line doc %(strtest1)sz0Single line doc Another test
   with some indentN)
r   r   r   r   r   r   	docformat	docstringr   filled_docstring)r   udd	formatted
single_docs       r   test_docformatr    <   s    			

.
/""8,$$Y4	Y 013
$$Z:	 	Y ! 	 
			s   BB""B3	zdocstrings stripped)reasonc                     \        4       ;_uu_ 4       p V P                  \        R 7       \        P                  ! \
        R4      pVR 4       pR p\        VP                  VP                  4       \        P                  ! \
        \        P                  R8  d   RMR4      pVR 4       pR p\        VP                  VP                  4       RRR4       R#   + '       g   i     R# ; i)	r	   Tc                     R# zDocstring
%(strtest3)s
N r%       r   functest_decorator.<locals>.funcQ       r&   c                     R# z+Docstring
Another test
   with some indent
Nr%   r%   r&   r   expected test_decorator.<locals>.expectedW   r)   r&   Fc                     R# r$   r%   r%   r&   r   r'   r(   e   r)   r&   c                     R# r+   r%   r%   r&   r   r,   r-   j   r)   r&   N)      )
r   r   r   r   filldocr   r   __doc__sysversion_info)r   	decoratorr'   r,   s       r   test_decoratorr7   J   s    			

.
/NN8T2			 
	
	
 	T\\8#3#34 NN8#&#3#3g#= .3CGI	 
	 
		
 	T\\8#3#34G 
			s   B:CC(	c                    a \        4       ;_uu_ 4       p V P                  \        R 7        ! R R4      o ! V3R lRS4      pRRR4       \        XP                  P
                  SP                  P
                  R,           4       \        VP                  P
                  SP                  P
                  4       V! 4       p\        VP                  P
                  SP                  P
                  R,           4       \        VP                  P
                  SP                  P
                  4       R#   + '       g   i     L; i)r	   c                   ,   a  ] tR t^xt o R tR tRtV tR# )(test_inherit_docstring_from.<locals>.Fooc                    R# )zDo something useful.Nr%   selfs   &r   r'   -test_inherit_docstring_from.<locals>.Foo.funcy   s    r&   c                    R# )zSomething else.Nr%   r<   s   &r   func2.test_inherit_docstring_from.<locals>.Foo.func2}   r)   r&   r%   N)__name__
__module____qualname____firstlineno__r'   r@   __static_attributes____classdictcell__)__classdict__s   @r   Foor:   x   s     & &r&   rI   c                      <a  ] tR t^t o ]P
                  !  Z4      R 4       t]P
                  !  Z4      R 4       tRtV t	R# )(test_inherit_docstring_from.<locals>.Barc                    R# )z%(super)sABCNr%   r<   s   &r   r'   -test_inherit_docstring_from.<locals>.Bar.func        r&   c                    R # )Nr%   r<   s   &r   r@   .test_inherit_docstring_from.<locals>.Bar.func2   rN   r&   r%   N)
rB   rC   rD   rE   r   inherit_docstring_fromr'   r@   rF   rG   )rH   rI   s   @r   BarrK      sA     **3/ 0 **3/ 0r&   rR   NABC)r   r   r   r   r'   r3   r@   )r   rR   barrI   s      @r   test_inherit_docstring_fromrU   r   s     
		

.
/	& 	&		# 		 
, !!388#3#3e#;<""CII$5$56
%C!!388#3#3e#;<""CII$5$565 
	s   /D22E	)r3   r4   pytestnumpy.testingr   r   
scipy._libr   flagsoptimizeDOCSTRINGS_STRIPPEDr   r   r   r   r   r   r   r   r    markskipifr7   rU   r%   r&   r   <module>r^      s    F 
  9  ii((1,  
 
    zzz#
 E7 '0EF$5 G$5N '0EF7 G7r&   