U
    NZf4                     @   sR   d dl Z d dlmZmZmZmZ d dlmZ e j	
ddd dd gdd ZdS )	    N)Series	TimedeltaTimedeltaIndextimedelta_rangeconsc                 C   s   t | S Nr   x r   T/tmp/pip-unpacked-wheel-nbcvw55c/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   markZparametrizer   r   r   r   r   <module>   s   