HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/tests/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/tests/__pycache__/test_errors.cpython-36.pyc
3

���h��
@sjddlZddlmZddlZejjddddddd	d
ddd
dg�dd��Zdd�ZGdd�d�Z	dd�Z
dS)�N)�AbstractMethodError�excZUnsupportedFunctionCallZUnsortedIndexError�OutOfBoundsDatetimeZParserErrorZPerformanceWarningZDtypeWarningZEmptyDataErrorZ
ParserWarningZ
MergeError�OptionErrorZNumbaUtilErrorc	CsJddlm}t||�}|dk	s"t�d}tj||d��|��WdQRXdS)Nr)�errorsz^$)�match)�pandasr�getattr�AssertionError�pytest�raises)rr�err�msg�r�:/tmp/pip-build-5_djhm0z/pandas/pandas/tests/test_errors.py�test_exception_importables
rc	Cs:ddlm}d}tj|j|d��tjd�WdQRXdS)Nr)rz7Out of bounds nanosecond timestamp: 1500-01-01 00:00:00)rZ15000101)rrrrr�pdZ	Timestamp)rrrrr�test_catch_oob&src@s,eZdZedd��Zedd��Zdd�ZdS)�FoocCst|dd��dS)N�classmethod)�
methodtype)r)�clsrrrr/szFoo.classmethodcCst|dd��dS)N�property)r)r)�selfrrrr3szFoo.propertycCst|��dS)N)r)rrrr�method7sz
Foo.methodN)�__name__�
__module__�__qualname__rrrrrrrr.srcCsxd}tjt|d��tj�WdQRXd}tjt|d��t�jWdQRXd}tjt|d��t�j�WdQRXdS)Nz:This classmethod must be defined in the concrete class Foo)rz7This property must be defined in the concrete class Fooz5This method must be defined in the concrete class Foo)rrrrrrr)Zxprrrr�$test_AbstractMethodError_classmethod;sr)rZ
pandas.errorsrrr�markZparametrizerrrrrrrr�<module>s$