3
®ybŽ  ã               @   sj   d dl Z d dlmZ d dlZe jjddddddd	d
ddddgƒdd„ ƒZdd„ ZG dd„ dƒZ	dd„ Z
dS )é    N)ÚAbstractMethodErrorÚexcZUnsupportedFunctionCallZUnsortedIndexErrorÚOutOfBoundsDatetimeZParserErrorZPerformanceWarningZDtypeWarningZEmptyDataErrorZParserWarningZ
MergeErrorÚOptionErrorZNumbaUtilErrorc          	   C   sJ   ddl m} t|| ƒ}|d k	s"t‚d}tj||d�� |ƒ ‚W d Q R X d S )Nr   )Úerrorsz^$)Úmatch)Úpandasr   ÚgetattrÚAssertionErrorÚpytestÚraises)r   r   ÚerrÚmsg© r   ú</tmp/pip-install-4cy230dp/pandas/pandas/tests/test_errors.pyÚtest_exception_importable   s    
r   c           	   C   s:   ddl m}  d}tj| j|d�� tjdƒ W d Q R X d S )Nr   )r   z7Out of bounds nanosecond timestamp: 1500-01-01 00:00:00)r   Z15000101)r   r   r   r   r   ÚpdZ	Timestamp)r   r   r   r   r   Útest_catch_oob&   s    r   c               @   s,   e Zd Zedd„ ƒZedd„ ƒZdd„ ZdS )ÚFooc             C   s   t | dd�‚d S )NÚclassmethod)Ú
methodtype)r   )Úclsr   r   r   r   /   s    zFoo.classmethodc             C   s   t | dd�‚d S )NÚproperty)r   )r   )Úselfr   r   r   r   3   s    zFoo.propertyc             C   s   t | ƒ‚d S )N)r   )r   r   r   r   Úmethod7   s    z
Foo.methodN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   .   s   r   c              C   sx   d} t jt| d�� tjƒ  W d Q R X d} t jt| d�� tƒ j W d Q R X d} t jt| d�� tƒ jƒ  W d Q R X d S )Nz:This classmethod must be defined in the concrete class Foo)r   z7This property must be defined in the concrete class Fooz5This method must be defined in the concrete class Foo)r   r   r   r   r   r   r   )Zxprr   r   r   Ú$test_AbstractMethodError_classmethod;   s    r   )r   Zpandas.errorsr   r   r   ÚmarkZparametrizer   r   r   r   r   r   r   r   Ú<module>   s$   