
    OwgQ                     \    d dl Zd dlZd dlmZmZmZ d dlmZ	  G d d      Z
 G d d      Zy)    N)PeriodPeriodIndexperiod_rangec                       e Zd ZdZej
                  j                  dg d      ej
                  j                  d      ej
                  j                  d      d                      Zy)TestPeriodRepresentationz#
    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                     t        |d|      }t        j                  dt        j                        }t	        j
                  |j                  |       y )N
   )startperiodsfreq)dtype)r   nparangeint64tmassert_numpy_array_equalasi8)selfr   	base_daterngexps        ]/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/indexes/period/test_tools.py	test_freqz"TestPeriodRepresentation.test_freq   s:    * BTBii"((+
##CHHc2    N)	__name__
__module____qualname____doc__pytestmarkparametrizefilterwarningsr$    r%   r#   r   r      sg     [[	
  [[ VW[[B3 X!(3r%   r   c                       e Zd Zd Zy)TestPeriodIndexConversionc                     t        ddd      }|j                         }|D ]  }t        |t              rJ  t	        |      }t        j                  ||       y )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_tolistz%TestPeriodIndexConversion.test_tolist-   sU    #Z[I\\^ 	)Aa(((	) B
eU+r%   N)r&   r'   r(   r:   r.   r%   r#   r0   r0   ,   s    ,r%   r0   )numpyr   r*   pandasr   r   r   pandas._testing_testingr   r   r0   r.   r%   r#   <module>r?      s/      
 3 3@, ,r%   