
    PiK                     L    d Z ddlZddlmZmZmZ ddlmZ  G d d          Z	dS )z>Tests for PeriodIndex behaving like a vectorized Period scalar    N)	Timedelta
date_rangeperiod_rangec                       e Zd Zd Zd Zej                            d          ej                            d          d                         ZdS )TestPeriodIndexOpsc                     t          ddd          }t          ddd          }t          j        |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_indexs      /home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/pandas/tests/indexes/period/test_scalar_compat.pytest_start_timez"TestPeriodIndexOps.test_start_time   sF    #\|LLL#LlNNN
e.?????    c                     t          ddd          }t          ddd          }|t          dd          t          dd	          z
  z  }t          j        |j        |           d S )
Nr	   r
   r   r   MEr      Dus)r   r   r   r   r   end_timer   s      r   test_end_timez TestPeriodIndexOps.test_end_time   sh    #\|LLL#LlNNN)As++i4.@.@@@
enn=====r   z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningz8ignore:Period with BDay freq is deprecated:FutureWarningc                     t          ddd          }|j        }t          ddd                              d           }|t	          dd          z   t	          dd          z
  }t          j        ||           d S )Nz
1990-01-05Br   )r   periodsr   r    )r   r!   r   
_with_freqr   r   r   )r   piresultdtiexpecteds        r   test_end_time_business_fridayz0TestPeriodIndexOps.test_end_time_business_friday   s}     ,S!<<<C;;;FFtLL1c***Yq$-?-??
fh/////r   N)	__name__
__module____qualname__r   r"   pytestmarkfilterwarningsr+    r   r   r   r      s        @ @ @> > > [ VWW[B 0 0  XW0 0 0r   r   )
__doc__r/   pandasr   r   r   pandas._testing_testingr   r   r2   r   r   <module>r7      s    D D          
      0 0 0 0 0 0 0 0 0 0r   