
    iiQ                     \    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dS )    )dedentN)	deprecatec                      dS )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       [/var/www/html/ecfs/ecfsenv/lib/python3.11/site-packages/pandas/tests/util/test_deprecate.pynew_funcr
   
   s
     r   c                      dS )Nnew_func_no_docstring calledr   r   r   r	   new_func_no_docstringr      s    ))r   c                      dS )z#Summary should be in the next line.znew_func_wrong_docstring calledr   r   r   r	   new_func_wrong_docstringr      s    ,,r   c                      dS )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            n# 1 swxY w Y   |dk    sJ | j        t          t          j                  k    sJ d S )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   '   s    +x<STTTI		#M	2	2                 &&&&&'@'H I IIIIIII   A		AAc                      t          dt          dd          } t          j        t                    5   |             }d d d            n# 1 swxY w Y   |dk    sJ d S )Nr   r   r   r   r   )r   r   r   r   r   r   s     r	   test_deprecate_no_docstringr!   1   s    *E7N  I 
	#M	2	2                3333333r   c                      d} t          j        t          |           5  t          dt          dd           d d d            d S # 1 swxY w Y   d S )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	1	1 
 
15>U	
 	
 	
 	

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
s   AAA)textwrapr   r$   pandas.util._decoratorsr   pandas._testing_testingr   r
   r   r   r   r   r!   r'   r   r   r	   <module>r,      s           - - - - - -        * * *- - -
  J J J4 4 4
 
 
 
 
r   