gL i ddlZddlmZmZddlZej jdgddZdZ ej jddd gd Z Gd d Z d Z y)N)AbstractMethodErrorUndefinedVariableErrorexc) AttributeConflictWarning CSSWarningCategoricalConversionWarningClosedFileError DataError DatabaseError DtypeWarningEmptyDataErrorIncompatibilityWarning IndexingErrorInvalidColumnNameInvalidComparisonInvalidVersionLossySetitemError MergeErrorNoBufferPresentNumExprClobberingErrorNumbaUtilError OptionErrorOutOfBoundsDatetime ParserError ParserWarningPerformanceWarningPossibleDataLossErrorPossiblePrecisionLossPyperclipExceptionSettingWithCopyErrorSettingWithCopyWarningSpecificationErrorUnsortedIndexErrorUnsupportedFunctionCallValueLabelTypeMismatchcddlm}t||}|Jd}tj||5|#1swYyxYw)Nrerrorsz^$match)pandasr(getattrpytestraises)rr(errmsgs ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/tests/test_errors.pytest_exception_importabler2 sJL &# C ?? C s# &e s 8Acddlm}d}tj|j|5t j djddddy#1swYyxYw)Nrr'z=Cannot cast 1500-01-01 00:00:00 to unit='ns' without overflowr)15000101ns)r+r(r-r.rpd Timestampas_unit)r(r0s r1test_catch_oobr9>sJ IC v11 =/ Z ((.///s %AA!is_localTFcd}|rd|d}nd|d}tjt|5t||#1swYyxYw)Nxzlocal variable 'z' is not definedzname 'r))r-r.r)r: variable_namer0s r1#test_catch_undefined_variable_errorr>FsVM /?@}o%56 -S 9>$]H==>>s :Ac2eZdZedZedZdZy)Fooct|d)N classmethod methodtyper)clss r1rBzFoo.classmethodYs!#-@@ct|d)NpropertyrCrEselfs r1rIz Foo.property]s!$:>>rGct|)NrErJs r1methodz Foo.methodas !$''rGN)__name__ __module__ __qualname__rBrIrMrGr1r@r@Xs/AA??(rGr@cd}tjt|5tj dddd}tjt|5tj dddd}tjt|5tj dddy#1swYxYw#1swYTxYw#1swYyxYw)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.rr@rBrIrM)xprs r1$test_AbstractMethodError_classmethodrTes FC *# 6  DC *# 6  BC *# 6  s#B4CC 4B=C  C) r- pandas.errorsrrr+r6mark parametrizer2r9r>r@rTrQrGr1rXs   !$J K$J /  >> ( ( rG