
    Mh?                     4    S SK r S SKJrJrJr   " S S5      rg)    N)IntervalPeriod	Timestampc                      \ rS rSr\R
                  R                  SSS\" S5      \" S5      4\" SS5      \" SS	5      4\	" S
SS9\	" S
SS94/5      S 5       r
S r\R
                  R                  S/ SQ5      S 5       rSrg)TestIntervalConstructors
   zleft, right)az))r	   b)cdABabr         2018Q1Q)freqc                     Sn[         R                  " [        US9   [        X5        S S S 5        g ! , (       d  f       g = f)Nz;Only numeric, Timestamp and Timedelta endpoints are allowedmatchpytestraises
ValueErrorr   )selfleftrightmsgs       `/var/www/html/env/lib/python3.13/site-packages/pandas/tests/scalar/interval/test_constructors.pytest_construct_errors.TestIntervalConstructors.test_construct_errors   s,     L]]:S1T! 211s   1
?c                    Sn[         R                  " [        US9   [        SSSS9  S S S 5        Sn[         R                  " [        US9   [        SS5        S S S 5        g ! , (       d  f       N?= f! , (       d  f       g = f)Nz invalid option for 'closed': foor   r   r   foo)closedz+left side of interval must be <= right sider   )r   r   s     r    test_constructor_errors0TestIntervalConstructors.test_constructor_errors   s^    0]]:S1Q%( 2 <]]:S1QN 21	 21 21s   A!A2!
A/2
B ztz_left, tz_right))NUTC)r(   N)r(   z
US/Easternc                     [        SUS9n[        SUS9nUb  Uc	  [        nSnO[        nSn[        R                  " XVS9   [        X45        S S S 5        g ! , (       d  f       g = f)Nz
2017-01-01)tzz
2017-01-02z/Cannot compare tz-naive and tz-aware timestampsz+left and right must have the same time zoner   )r   	TypeErrorr   r   r   r   )r   tz_lefttz_rightr   r   errorr   s          r    test_constructor_errors_tz3TestIntervalConstructors.test_constructor_errors_tz$   sZ    
 '2,84?h.ECCE?C]]5,T! -,,s    A
A# N)__name__
__module____qualname____firstlineno__r   markparametrizelistr   r   r!   r&   r/   __static_attributes__r1       r    r   r   
   s    [[$$Zd$a^Xa^,H3's)CD	
	"	" [[R""r:   r   )r   pandasr   r   r   r   r1   r:   r    <module>r<      s     )" )"r:   