
    MhQ                     \    S SK rS SKrS SKJrJrJr  S SKJr	   " S S5      r
 " S S5      rg)    N)PeriodPeriodIndexperiod_rangec                       \ rS rSrSr\R                  R                  S/ SQ5      \R                  R                  S5      \R                  R                  S5      S 5       5       5       r	Sr
g	)
TestPeriodRepresentation   z
Wish to match NumPy units
zfreq, base_date))zW-THU
1970-01-01)Dr	   )Br	   )hr	   )minr	   )sr	   )msr	   )usr	   )nsr	   )Mz1970-01)Yi  z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningz8ignore:Period with BDay freq is deprecated:FutureWarningc                     [        USUS9n[        R                  " S[        R                  S9n[        R
                  " UR                  U5        g )N
   )startperiodsfreq)dtype)r   nparangeint64tmassert_numpy_array_equalasi8)selfr   	base_daterngexps        X/var/www/html/env/lib/python3.13/site-packages/pandas/tests/indexes/period/test_tools.py	test_freq"TestPeriodRepresentation.test_freq   s:    * BTBii"((+
##CHHc2     N)__name__
__module____qualname____firstlineno____doc__pytestmarkparametrizefilterwarningsr%   __static_attributes__r(   r'   r$   r   r      sg     [[	
  [[ VW[[B3 X!(3r'   r   c                       \ rS rSrS rSrg)TestPeriodIndexConversion,   c                     [        SSSS9nUR                  5       nU H  n[        U[        5      (       a  M   e   [	        U5      n[
        R                  " X5        g )Nr   z1/1/2001z	12/1/2009)r   r   end)r   tolist
isinstancer   r   r   assert_index_equal)r    indexrsxrecons        r$   test_tolist%TestPeriodIndexConversion.test_tolist-   sQ    #Z[I\\^Aa((((  B
e+r'   r(   N)r)   r*   r+   r,   r?   r2   r(   r'   r$   r4   r4   ,   s    ,r'   r4   )numpyr   r.   pandasr   r   r   pandas._testing_testingr   r   r4   r(   r'   r$   <module>rE      s/      
 3 3@, ,r'   