
    OwgQ                     Z    d dl mZ d dlZd dlmZ d dlmZ d Zd Z	d Z
d Zd Zd	 Zd
 Zy)    )dedentN)	deprecatec                       y)z
    This is the summary. The deprecate directive goes next.

    This is the extended summary. The deprecate directive goes before this.
    new_func called r       W/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/util/test_deprecate.pynew_funcr
   
   s     r   c                       y)Nnew_func_no_docstring calledr   r   r   r	   new_func_no_docstringr      s    )r   c                       y)z#Summary should be in the next line.znew_func_wrong_docstring calledr   r   r   r	   new_func_wrong_docstringr      s    ,r   c                       y)z
    This is the summary. The deprecate directive goes next.

    .. deprecated:: 1.0
        Use new_func instead.

    This is the extended summary. The deprecate directive goes before this.
    Nr   r   r   r	   new_func_with_deprecationr      s    r   c                      t        dt        dd      } t        j                  t              5   |        }d d d        dk(  sJ | j
                  t        t        j
                        k(  sJ y # 1 sw Y   9xY w)N	depr_func1.0Use new_func instead.msgr   )r   r
   tmassert_produces_warningFutureWarning__doc__r   r   r   results     r	   test_deprecate_okr   '   sn    +x<STI		#	#M	2  &&&&'@'H'H IIII	 s   A--A6c                      t        dt        dd      } t        j                  t              5   |        }d d d        dk(  sJ y # 1 sw Y   xY w)Nr   r   r   r   r   )r   r   r   r   r   r   s     r	   test_deprecate_no_docstringr    1   sR    *E7NI 
	#	#M	2 3333 s   AAc                      d} t        j                  t        |       5  t        dt        dd       d d d        y # 1 sw Y   y xY w)Nz/deprecate needs a correctly formatted docstring)matchr   r   r   r   )pytestraisesAssertionErrorr   r   r   s    r	   test_deprecate_wrong_docstringr&   :   s=    
;C	~S	1 
15>U	

 
 
s	   ;A)textwrapr   r#   pandas.util._decoratorsr   pandas._testing_testingr   r
   r   r   r   r   r    r&   r   r   r	   <module>r+      s5      - *-
J4
r   