U
    NZf,                     @   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)PeriodPeriodIndexSeriesperiod_rangeconsc                 C   s   t | S Nr   x r   Q/tmp/pip-unpacked-wheel-nbcvw55c/pandas/tests/copy_view/index/test_periodindex.py<lambda>       r   c                 C   s   t t | S r   r   r	   r   r   r   r      r   c                 C   sL   t dddd}t|}||}|jdd}td|jd< | rHt|| d S )	Nz
2019-12-31   D)ZperiodsfreqT)deepz
2020-12-31r   )r   r   copyr   ZiloctmZassert_index_equal)Zusing_copy_on_writer   dtZseridxexpectedr   r   r   test_periodindex   s    r   )ZpytestZpandasr   r   r   r   Zpandas._testingZ_testingr   markZparametrizer   r   r   r   r   <module>   s   