o
    _~#gQ                     @   sh   d dl mZ d dlZd dlmZ d dlmZ dd Zdd Z	dd	 Z
d
d Zdd Zdd Zdd ZdS )    )dedentN)	deprecatec                   C      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   r   r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/util/test_deprecate.pynew_func
   s   r   c                   C   r   )Nnew_func_no_docstring calledr   r   r   r   r   new_func_no_docstring   s   r
   c                   C   r   )z#Summary should be in the next line.znew_func_wrong_docstring calledr   r   r   r   r   new_func_wrong_docstring   s   r   c                   C   r   )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   r   new_func_with_deprecation   s    r   c                  C   sd   t dtddd} tt |  }W d    n1 sw   Y  |dks&J | jttjks0J d S )N	depr_func1.0Use new_func instead.msgr   )r   r   tmassert_produces_warningFutureWarning__doc__r   r   r   resultr   r   r   test_deprecate_ok'   s   r   c                  C   sP   t dtddd} tt |  }W d    n1 sw   Y  |dks&J d S )Nr   r   r   r   r	   )r   r
   r   r   r   r   r   r   r   test_deprecate_no_docstring1   s   r   c                  C   sH   d} t jt| d tdtddd W d    d S 1 sw   Y  d S )Nz/deprecate needs a correctly formatted docstring)matchr   r   r   r   )pytestraisesAssertionErrorr   r   r   r   r   r   test_deprecate_wrong_docstring:   s   "r   )textwrapr   r   pandas.util._decoratorsr   pandas._testing_testingr   r   r
   r   r   r   r   r   r   r   r   r   <module>   s    	
	