a
    é´«j´  ã                   @   s2   d dl Z d dlmZ d dlmZ G dd„ dƒZdS )é    N)ÚTimedeltaArrayc                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚTestAccumulatorc                 C   sN   t jddgdd�}tjtdd�� | d¡ W d   ƒ n1 s@0    Y  d S )NÚ1DÚ2Dzm8[ns]©Údtypezcumprod not supported)ÚmatchZcumprod)r   Ú_from_sequenceÚpytestZraisesÚ	TypeErrorÚ_accumulate)ÚselfÚarr© r   úm/var/www/html/laksyashrimp/venv/lib/python3.9/site-packages/pandas/tests/arrays/timedeltas/test_cumulative.pyÚtest_accumulators_disallowed   s    z,TestAccumulator.test_accumulators_disallowedc                 C   sJ   d|› d�}t jddg|d�}| d¡}t jddg|d�}t ||¡ d S )Nzm8[ú]r   r   r   ZcumsumZ3D)r   r	   r   ÚtmZassert_timedelta_array_equal)r   Úunitr   r   ÚresultÚexpectedr   r   r   Útest_cumsum   s
    
zTestAccumulator.test_cumsumN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   r   )r
   Zpandas._testingZ_testingr   Zpandas.core.arraysr   r   r   r   r   r   Ú<module>   s   