
    bMh
                         d dl Z d dlmZmZ d dlZe j                            dg d          d             Zd Z	e j                            ddd	g          d
             Z
 G d d          Zd ZdS )    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xY w Y   d S )Nr   errorsz^$match)pandasr(   getattrpytestraises)r   r(   errmsgs       X/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/test_errors.pytest_exception_importabler2      s    L 
&#

C??? C	s#	&	&	&  cee         s   >AAc                      ddl m}  d}t          j        | j        |          5  t          j        d                              d           d d d            d S # 1 swxY w Y   d S )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   >   s    
IC	v1	=	=	= / /
Z  ((.../ / / / / / / / / / / / / / / / / /s   (AA Ais_localTFc                     d}| rd| d}nd| d}t          j        t          |          5  t          ||           # 1 swxY w Y   d S )Nxzlocal variable 'z' is not definedzname 'r)   )r-   r.   r   )r:   variable_namer0   s      r1   #test_catch_undefined_variable_errorr>   F   s     M 7@@@@6}666	-S	9	9	9 > >$]H===> > > > > > > > > >s   >AAc                   @    e Zd Zed             Zed             Zd ZdS )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   sZ        A A [A ? ? X?( ( ( ( (rG   r@   c                     d} t          j        t          |           5  t                                           d d d            n# 1 swxY w Y   d} t          j        t          |           5  t                      j         d d d            n# 1 swxY w Y   d} t          j        t          |           5  t                                                       d d d            d S # 1 swxY w Y   d S )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	6	6                 DC	*#	6	6	6                 BC	*#	6	6	6                   s5   AAA,BBB4!C""C&)C&)r-   pandas.errorsr   r   r+   r6   markparametrizer2   r9   r>   r@   rT   rQ   rG   r1   <module>rX      s          
     	! ! !$ $J K$ $J/ / /  > > >
( 
( 
( 
( 
( 
( 
( 
(    rG   