Ë
    0Ò^j6  ã                   ó(  — d Z ddlZddlZddlZddlmZ ddlmZ ej                  j                  dkD  Z
dZdZdZd	Zeeed
œZdZd„ Zd„ Zd„ Zej(                  j+                  e
d¬«      d„ «       Zej(                  j+                  e
d¬«      d„ «       Zy)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                  óv  — t        j                  «       5  t        j                  dt        ¬«       t	        t        j                  t        «      t        «       t	        t        j                  t        «      t        «       t	        t        j                  t        «      t        «       d d d «       y # 1 sw Y   y xY w)NÚignore©Úcategory)
ÚwarningsÚcatch_warningsÚsimplefilterÚDeprecationWarningr   r   Úunindent_stringÚ
param_doc1Ú
param_doc2Ú
param_doc3© ó    úg/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/scipy/_lib/tests/test_doccer.pyÚtest_unindentr   ,   sw   € Ü	×	 Ñ	 Ó	"ñ EÜ×Ñ˜hÔ1CÕDÜ”V×+Ñ+¬JÓ7¼ÔDÜ”V×+Ñ+¬JÓ7¼ÔDÜ”V×+Ñ+¬JÓ7¼ÔD÷	E÷ Eñ Eús   •BB/Â/B8c                  óB  — t        j                  «       5  t        j                  dt        ¬«       t	        j
                  t        «      } d d d «       t         d   t        d   «       t        | d   t        d   «       t        | d   t        d   «       y # 1 sw Y   ŒLxY w)Nr
   r   r   r   r   )r   r   r   r   r   Úunindent_dictÚdoc_dictr   )Úd2s    r   Útest_unindent_dictr   4   s   € Ü	×	 Ñ	 Ó	"ñ ,Ü×Ñ˜hÔ1CÕDÜ×!Ñ!¤(Ó+ˆ÷,ô ��J‘¤¨*Ñ!5Ô6Ü��J‘¤¨*Ñ!5Ô6Ü��J‘¤¨*Ñ!5Õ6÷,ð ,ús   •5BÂBc                  ób  — t        j                  «       5  t        j                  dt        ¬«       t	        j
                  t        «      } t	        j                  t        | «      }t        |t        «       d}t	        j                  |t        «      }t        |d«       d d d «       y # 1 sw Y   y xY w)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‰   € Ü	×	 Ñ	 Ó	"ñ 
Ü×Ñ˜hÔ1CÕDÜ×"Ñ"¤8Ó,ˆÜ×$Ñ$¤Y°Ó4ˆ	Ü�YÔ 0Ô1Ø3ˆ
Ü×$Ñ$ Z´Ó:ˆ	ô 	�Yð !ô 	÷
÷ 
ñ 
ús   •BB%Â%B.zdocstrings stripped)Úreasonc                  óÊ  — t        j                  «       5  t        j                  dt        ¬«       t	        j
                  t        d«      } | d„ «       }d„ }t        |j                  |j                  «       t	        j
                  t        t        j                  dk  rdnd«      } | d„ «       }d	„ }t        |j                  |j                  «       d d d «       y # 1 sw Y   y xY w)
Nr
   r   Tc                   ó   — y©z0 Docstring
            %(strtest3)s
            Nr   r   r   r   Úfuncztest_decorator.<locals>.funcR   ó   � r   c                   ó   — y)zP Docstring
            Another test
               with some indent
            Nr   r   r   r   Úexpectedz test_decorator.<locals>.expectedX   r+   r   )é   é   Fc                   ó   — yr)   r   r   r   r   r*   ztest_decorator.<locals>.funcf   r+   r   c                   ó   — y)zX Docstring
                Another test
                   with some indent
            Nr   r   r   r   r-   z test_decorator.<locals>.expectedk   r+   r   )r   r   r   r   r   Úfilldocr   r   Ú__doc__ÚsysÚversion_info)Ú	decoratorr*   r-   s      r   Útest_decoratorr7   K   sÊ   € ä	×	 Ñ	 Ó	"ñ #5Ü×Ñ˜hÔ1CÕDä—N‘N¤8¨TÓ2ˆ	à	ñ	ó 
ð	ò
	ô
 	�T—\‘\ 8×#3Ñ#3Ô4ô —N‘N¤8Ü#&×#3Ñ#3°gÒ#=ñ .3ØCGóIˆ	ð 
ñ	ó 
ð	ò	ô
 	�T—\‘\ 8×#3Ñ#3Ô4÷G#5÷ #5ñ #5ús   •B;CÃC"c                  óv  ‡— t        j                  «       5  t        j                  dt        ¬«        G d„ d«      Š G ˆfd„d‰«      } d d d «       t	         j
                  j                  ‰j
                  j                  dz   «       t	        | j                  j                  ‰j                  j                  «        | «       }t	        |j
                  j                  ‰j
                  j                  dz   «       t	        |j                  j                  ‰j                  j                  «       y # 1 sw Y   ŒçxY w)Nr
   r   c                   ó   — e Zd Zd„ Zd„ Zy)ú(test_inherit_docstring_from.<locals>.Fooc                  ó   — y)zDo something useful.Nr   ©Úselfs    r   r*   z-test_inherit_docstring_from.<locals>.Foo.funcz   s   € àr   c                  ó   — y)zSomething else.Nr   r<   s    r   Úfunc2z.test_inherit_docstring_from.<locals>.Foo.func2~   r+   r   N)Ú__name__Ú
__module__Ú__qualname__r*   r?   r   r   r   ÚFoor:   y   s   „ òó&r   rC   c                   ór   •— e Zd Z ej                  W ° «      d„ «       Z ej                  W ° «      d„ «       Zy)ú(test_inherit_docstring_from.<locals>.Barc                  ó   — y)z%(super)sABCNr   r<   s    r   r*   z-test_inherit_docstring_from.<locals>.Bar.func‚   ó   € ð r   c                  ó   — y )Nr   r<   s    r   r?   z.test_inherit_docstring_from.<locals>.Bar.func2‡   rG   r   N)r@   rA   rB   r   Úinherit_docstring_fromr*   r?   )rC   s   €r   ÚBarrE   �   sC   ø„ Ø*ˆV×*Ñ*©3Ó/ñó 0ðð +ˆV×*Ñ*©3Ó/ñó 0ñr   rJ   ÚABC)r   r   r   r   r   r*   r3   r?   )rJ   ÚbarrC   s     @r   Útest_inherit_docstring_fromrM   s   sØ   ø€ ô 
×	 Ñ	 Ó	"ñ Ü×Ñ˜hÔ1CÕD÷	&ñ 	&ö		�#ô 		÷ô, �—‘×!Ñ! 3§8¡8×#3Ñ#3°eÑ#;Ô<Ü�—‘×"Ñ" C§I¡I×$5Ñ$5Ô6Ù
‹%€CÜ�—‘×!Ñ! 3§8¡8×#3Ñ#3°eÑ#;Ô<Ü�—‘×"Ñ" C§I¡I×$5Ñ$5Õ6÷5ð ús   –3D/Ä/D8)r3   r4   r   ÚpytestÚnumpy.testingr   Ú
scipy._libr   ÚflagsÚoptimizeÚDOCSTRINGS_STRIPPEDr    r   r   r   r   r!   r   r   r%   ÚmarkÚskipifr7   rM   r   r   r   ú<module>rV      sÙ   ðÙ Fã 
Û Û Ý &å ð —i‘i×(Ñ(¨1Ñ,Ð ðð 
ðð ð
 ð ðð ð "Ø!Ø!ñ#€ð
ð òEò7òð ‡�×ÑÐ'Ð0EÐÓFñ$5ó Gð$5ðN ‡�×ÑÐ'Ð0EÐÓFñ7ó Gñ7r   