o
    ib
                     @   sv   d dl Z d dlmZmZ d dlZe jdg ddd Zdd Z	e jd	d
dgdd Z
G dd dZdd ZdS )    N)AbstractMethodErrorUndefinedVariableErrorexc)UnsupportedFunctionCallUnsortedIndexErrorOutOfBoundsDatetimeParserErrorPerformanceWarningDtypeWarningEmptyDataErrorParserWarning
MergeErrorOptionErrorNumbaUtilError	DataErrorSpecificationErrorSettingWithCopyErrorSettingWithCopyWarningNumExprClobberingErrorIndexingErrorPyperclipException
CSSWarningClosedFileErrorPossibleDataLossErrorIncompatibilityWarningAttributeConflictWarningDatabaseErrorPossiblePrecisionLossCategoricalConversionWarningInvalidColumnNameValueLabelTypeMismatchc                 C   sP   ddl m} t|| }|d usJ d}tj||d | 1 s!w   Y  d S )Nr   errorsz^$match)pandasr"   getattrpytestraises)r   r"   errmsg r+   S/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/pandas/tests/test_errors.pytest_exception_importable   s   "
r-   c                  C   sP   ddl m}  d}tj| j|d td W d    d S 1 s!w   Y  d S )Nr   r!   z7Out of bounds nanosecond timestamp: 1500-01-01 00:00:00r#   15000101)r%   r"   r'   r(   r   pd	Timestamp)r"   r*   r+   r+   r,   test_catch_oob:   s
   "r1   is_localTFc                 C   sP   d}| rd| d}nd| d}t jt|d t|| 1 s!w   Y  d S )Nxzlocal variable 'z' is not definedzname 'r#   )r'   r(   r   )r2   variable_namer*   r+   r+   r,   #test_catch_undefined_variable_errorB   s   
r5   c                   @   s,   e Zd Zedd Zedd Zdd ZdS )Fooc                 C      t | dd)Nclassmethod
methodtyper   )clsr+   r+   r,   r8   U      zFoo.classmethodc                 C   r7   )Npropertyr9   r;   selfr+   r+   r,   r>   Y   r=   zFoo.propertyc                 C   s   t | )Nr;   r?   r+   r+   r,   method]   s   z
Foo.methodN)__name__
__module____qualname__r8   r>   rA   r+   r+   r+   r,   r6   T   s    

r6   c                  C   s   d} t jt| d t  W d    n1 sw   Y  d} t jt| d t j W d    n1 s5w   Y  d} t jt| d t   W d    d S 1 sTw   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   r6   r8   r>   rA   )xprr+   r+   r,   $test_AbstractMethodError_classmethoda   s   

"rF   )r'   pandas.errorsr   r   r%   r/   markparametrizer-   r1   r5   r6   rF   r+   r+   r+   r,   <module>   s$    
!
