o
    _~#g
                     @   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) 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                 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/   }/var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/test_errors.pytest_exception_importable   s   &
r1   c                  C   sV   ddl m}  d}tj| j|d tdd W d    d S 1 s$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&   r.   r/   r/   r0   test_catch_oob>   s
   "r7   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   )r8   variable_namer.   r/   r/   r0   #test_catch_undefined_variable_errorF   s   
r;   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/   r0   r>   Y      zFoo.classmethodc                 C   r=   )Npropertyr?   rA   selfr/   r/   r0   rD   ]   rC   zFoo.propertyc                 C   s   t | )NrA   rE   r/   r/   r0   methoda   s   z
Foo.methodN)__name__
__module____qualname__r>   rD   rG   r/   r/   r/   r0   r<   X   s    

r<   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   r<   r>   rD   rG   )xprr/   r/   r0   $test_AbstractMethodError_classmethode   s   

"rL   )r+   pandas.errorsr   r   r)   r4   markparametrizer1   r7   r;   r<   rL   r/   r/   r/   r0   <module>   s$    
%
