zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
U
¬ý°dU ã#@s²ddlZddlmZmZddlZej ddddddd    d
d d d ddddddddddddddddddd d!d"d#g ¡d$d%„ƒZd&d'„Z    ej d(d)d*g¡d+d,„ƒZ
Gd-d.„d.ƒZ d/d0„Z dS)1éN)ÚAbstractMethodErrorÚUndefinedVariableErrorÚexcZAttributeConflictWarningZ
CSSWarningZCategoricalConversionWarningZClosedFileErrorZ    DataErrorZ DatabaseErrorZ DtypeWarningZEmptyDataErrorZIncompatibilityWarningZ IndexingErrorZInvalidColumnNameZInvalidComparisonÚInvalidVersionZLossySetitemErrorZ
MergeErrorZNoBufferPresentZNumExprClobberingErrorZNumbaUtilErrorÚ OptionErrorÚOutOfBoundsDatetimeZ ParserErrorZ ParserWarningZPerformanceWarningZPossibleDataLossErrorZPossiblePrecisionLossZPyperclipExceptionZSettingWithCopyErrorZSettingWithCopyWarningZSpecificationErrorZUnsortedIndexErrorZUnsupportedFunctionCallZValueLabelTypeMismatchc    CsJddlm}t||ƒ}|dk    s"t‚d}tj||d |ƒ‚W5QRXdS)Nr©Úerrorsz^$©Úmatch)Úpandasr    ÚgetattrÚAssertionErrorÚpytestÚraises)rr    ÚerrÚmsg©rúOd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/test_errors.pyÚtest_exception_importable s & 
 rc    Cs@ddlm}d}tj|j|dt d¡ d¡W5QRXdS)Nrrz=Cannot cast 1500-01-01 00:00:00 to unit='ns' without overflowr
Z15000101Úns)r r    rrrÚpdÚ    TimestampZas_unit)r    rrrrÚtest_catch_oob>s rÚis_localTFc    CsJd}|rd|›d}n d|›d}tjt|dt||ƒ‚W5QRXdS)NÚxzlocal variable 'z' is not definedzname 'r
)rrr)rZ variable_namerrrrÚ#test_catch_undefined_variable_errorFs  rc@s,eZdZedd„ƒZedd„ƒZdd„ZdS)ÚFoocCst|dd‚dS)NÚ classmethod©Z
methodtype©r)ÚclsrrrrYszFoo.classmethodcCst|dd‚dS)NÚpropertyrr ©Úselfrrrr"]sz Foo.propertycCs t|ƒ‚dS)Nr r#rrrÚmethodasz
Foo.methodN)Ú__name__Ú
__module__Ú __qualname__rr"r%rrrrrXs
 
 
rc    Csxd}tjt|dt ¡W5QRXd}tjt|dtƒjW5QRXd}tjt|dtƒ ¡W5QRXdS)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)rrrrrr"r%)ZxprrrrÚ$test_AbstractMethodError_classmethodesr)) rZ pandas.errorsrrr rÚmarkZ parametrizerrrrr)rrrrÚ<module>sbàþ%
þþ