
    Owg
                         d dl Z d dlmZmZ d dlZe j                  j                  dg d      d        Zd Z	e j                  j                  ddd	g      d
        Z
 G d d      Zd Zy)    N)AbstractMethodErrorUndefinedVariableErrorexc) AttributeConflictWarning
CSSWarningCategoricalConversionWarningClosedFileError	DataErrorDatabaseErrorDtypeWarningEmptyDataErrorIncompatibilityWarningIndexingErrorInvalidColumnNameInvalidComparisonInvalidVersionLossySetitemError
MergeErrorNoBufferPresentNumExprClobberingErrorNumbaUtilErrorOptionErrorOutOfBoundsDatetimeParserErrorParserWarningPerformanceWarningPossibleDataLossErrorPossiblePrecisionLossPyperclipExceptionSettingWithCopyErrorSettingWithCopyWarningSpecificationErrorUnsortedIndexErrorUnsupportedFunctionCallValueLabelTypeMismatchc                     ddl m} t        ||       }|J d}t        j                  ||      5   |       # 1 sw Y   y xY w)Nr   errorsz^$match)pandasr(   getattrpytestraises)r   r(   errmsgs       O/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/test_errors.pytest_exception_importabler2      sJ    L 
&#
C?? C	s#	& e s	   8Ac                      ddl m}  d}t        j                  | j                  |      5  t        j                  d      j                  d       d d d        y # 1 sw Y   y xY w)Nr   r'   z=Cannot cast 1500-01-01 00:00:00 to unit='ns' without overflowr)   15000101ns)r+   r(   r-   r.   r   pd	Timestampas_unit)r(   r0   s     r1   test_catch_oobr9   >   sJ    
IC	v11	= /
Z ((./ / /s   %AA!is_localTFc                     d}| rd| d}nd| d}t        j                  t        |      5  t        ||       # 1 sw Y   y xY w)Nxzlocal variable 'z' is not definedzname 'r)   )r-   r.   r   )r:   variable_namer0   s      r1   #test_catch_undefined_variable_errorr>   F   sV     M /?@}o%56	-S	9 >$]H==> >s	   :Ac                   2    e Zd Zed        Zed        Zd Zy)Fooc                     t        | d      )Nclassmethod
methodtyper   )clss    r1   rB   zFoo.classmethodY   s    !#-@@    c                     t        | d      )NpropertyrC   rE   selfs    r1   rI   zFoo.property]   s    !$:>>rG   c                     t        |       )NrE   rJ   s    r1   methodz
Foo.methoda   s    !$''rG   N)__name__
__module____qualname__rB   rI   rM    rG   r1   r@   r@   X   s/    A A ? ?(rG   r@   c                     d} t        j                  t        |       5  t        j	                          d d d        d} t        j                  t        |       5  t               j
                   d d d        d} t        j                  t        |       5  t               j                          d d d        y # 1 sw Y   xY w# 1 sw Y   TxY w# 1 sw Y   y xY w)Nz:This classmethod must be defined in the concrete class Foor)   z7This property must be defined in the concrete class Fooz5This method must be defined in the concrete class Foo)r-   r.   r   r@   rB   rI   rM   )xprs    r1   $test_AbstractMethodError_classmethodrT   e   s    
FC	*#	6  DC	*#	6  BC	*#	6     s#   B4C C4B= C	C)r-   pandas.errorsr   r   r+   r6   markparametrizer2   r9   r>   r@   rT   rQ   rG   r1   <module>rX      s    
  	!$JK$J/ >>
( 
(rG   