o
    ôT·jF  ã                   @   s>   d Z ddlZddlmZmZmZ ddlmZ G dd„ dƒZ	dS )z>Tests for PeriodIndex behaving like a vectorized Period scalaré    N)Ú	TimedeltaÚ
date_rangeÚperiod_rangec                   @   s<   e Zd Zdd„ Zdd„ Zej d¡ej d¡dd„ ƒƒZd	S )
ÚTestPeriodIndexOpsc                 C   s.   t dddd�}tdddd�}t |j|¡ d S )NÚMú
2016-01-01ú
2016-05-31©ÚfreqÚstartÚendÚMS©r   r
   )r   r   ÚtmÚassert_index_equalÚ
start_time©ÚselfÚindexÚexpected_index© r   úq/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/pandas/tests/indexes/period/test_scalar_compat.pyÚtest_start_time   s   z"TestPeriodIndexOps.test_start_timec                 C   sF   t dddd�}tdddd�}|tddƒtdd	ƒ 7 }t |j|¡ d S )
Nr   r   r   r	   ÚMEr   é   ÚDÚns)r   r   r   r   r   Úend_timer   r   r   r   Útest_end_time   s   z TestPeriodIndexOps.test_end_timez3ignore:PeriodDtype\[B\] is deprecated:FutureWarningz8ignore:Period with BDay freq is deprecated:FutureWarningc                 C   sH   t dddd�}|j}tdddd� d ¡}|tddd� }t ||¡ d S )Nz
1990-01-05ÚBr   )r
   Úperiodsr   éÿÿÿÿ)ÚdaysÚnanoseconds)r   r   r   Ú
_with_freqr   r   r   )r   ÚpiÚresultÚdtiÚexpectedr   r   r   Útest_end_time_business_friday   s
   z0TestPeriodIndexOps.test_end_time_business_fridayN)	Ú__name__Ú
__module__Ú__qualname__r   r   ÚpytestÚmarkÚfilterwarningsr)   r   r   r   r   r      s    
ÿr   )
Ú__doc__r-   Úpandasr   r   r   Úpandas._testingÚ_testingr   r   r   r   r   r   Ú<module>   s
    