
    Mh                         S SK rS SKrS SKrS SKJrJr  S SKJr  S SK	J
r  S rS r\R                  R                  S/ SQ5      S 5       r\R                  R                  S	/ S
Q5      S 5       rg)    N)
Resolutionget_resolution)NpyDatetimeUnitc                      [         R                  " S/[         R                  S9n [        U 5      nU[        R
                  :X  d   eg N   )dtype)nparrayint64r   r   RESO_NSarrress     U/var/www/html/env/lib/python3.13/site-packages/pandas/tests/tslibs/test_resolution.pytest_get_resolution_nanor      s6    
((A3bhh
'C

C*$$$$$    c                  T   [         R                  " S/[         R                  S9n [        U S [        R
                  R                  5      nU[        R                  :X  d   e[        U [        R                  [        R
                  R                  5      nU[        R                  :X  d   eg r   )r
   r   r   r   r   	NPY_FR_usvaluer   RESO_USpytzUTCr   s     r   !test_get_resolution_non_nano_datar      sx    
((A3bhh
'C
dO$=$=$C$C
DC*$$$$$
dhh(A(A(G(G
HC*$$$$$r   zfreqstr,expected)
)Yyear)Qquarter)Mmonth)Dday)hhour)minminute)ssecond)msmillisecond)usmicrosecond)ns
nanosecondc                 x    [         R                  " U 5      nUR                  U :X  d   eUR                  U:X  d   eg )N)r   get_reso_from_freqstrattr_abbrevattrname)freqstrexpectedresos      r   test_get_attrname_from_abbrevr6      s:      ++G4Dw&&&==H$$$r   freq)AHTSLUNc                     SU  S3n[         R                  " [        US9   [        R                  " U 5        S S S 5        g ! , (       d  f       g = f)N'z8' is deprecated and will be removed in a future version.)match)tmassert_produces_warningFutureWarningr   r0   )r7   msgs     r   <test_units_A_H_T_S_L_U_N_deprecated_from_attrname_to_abbrevsrF   3   s=     dVK
LC		#	#M	=((. 
>	=	=s   A  
A)numpyr
   pytestr   pandas._libs.tslibsr   r   pandas._libs.tslibs.dtypesr   pandas._testing_testingrB   r   r   markparametrizer6   rF    r   r   <module>rP      sw       7 %% %% !DE/ F/r   