
    4i                     Z    S SK Jr  S SKrS SKJr  S SKJr  S rS r	S r
S rS rS	 rS
 rg)    )dedentN)	deprecatec                      g)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       b/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/pandas/tests/util/test_deprecate.pynew_funcr
   
   s     r   c                      g)Nnew_func_no_docstring calledr   r   r   r	   new_func_no_docstringr      s    )r   c                      g)z#Summary should be in the next line.znew_func_wrong_docstring calledr   r   r   r	   new_func_wrong_docstringr      s    ,r   c                      g)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                     [        [        S[        SSS9n [        R                  " [        5         U " 5       nS S S 5        WS:X  d   eU R
                  [        [        R
                  5      :X  d   eg ! , (       d  f       N@= f)N	depr_func1.0Use new_func instead.msgr   )r   FutureWarningr
   tmassert_produces_warning__doc__r   r   r   results     r	   test_deprecate_okr   '   sn    {He9PI 
	#	#M	2 
3 &&&&'@'H'H IIII	 
3	2s   A22
B c                      [        [        S[        SSS9n [        R                  " [        5         U " 5       nS S S 5        WS:X  d   eg ! , (       d  f       N= f)Nr   r   r   r   r   )r   r   r   r   r   r   s     r	   test_deprecate_no_docstringr    3   sO    #I 
	#	#M	2 
33333 
3	2s   A		
Ac            	          Sn [         R                  " [        U S9   [        [        S[
        SSS9  S S S 5        g ! , (       d  f       g = f)Nz/deprecate needs a correctly formatted docstring)matchr   r   r   r   )pytestraisesAssertionErrorr   r   r   r   s    r	   test_deprecate_wrong_docstringr&   @   s8    
;C	~S	1$'	
 
2	1	1s	   ;
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   