a
    DBìj•  ã                   @   s^   d dl Z d dlmZmZmZmZ d dlmZ e j	 
d¡Ze j	 ddd„ dd„ g¡dd	„ ƒZdS )
é    N)ÚSeriesÚ	TimedeltaÚTimedeltaIndexÚtimedelta_rangez.ignore:Setting a value on a view:FutureWarningÚconsc                 C   s   t | ƒS ©N©r   ©Úx© r   úo/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pandas/tests/copy_view/index/test_timedeltaindex.pyÚ<lambda>   ó    r   c                 C   s   t t | ƒƒS r   r   r	   r   r   r   r      r   c                 C   sJ   t ddd�}t|ƒ}||ƒ}|jdd�}tdƒ|jd< | rFt ||¡ d S )Nz1 dayé   )ZperiodsT)Údeepz5 daysr   )r   r   Úcopyr   ZilocÚtmZassert_index_equal)Zusing_copy_on_writer   ÚdtZserÚidxÚexpectedr   r   r   Útest_timedeltaindex   s    r   )ZpytestZpandasr   r   r   r   Zpandas._testingZ_testingr   ÚmarkÚfilterwarningsZ
pytestmarkZparametrizer   r   r   r   r   Ú<module>   s   ÿþþ