U
    c                     @   sB   d dl Z d dlmZ d dlmZmZ d dlmZ G dd dZ	dS )    N)PY311)offsetsperiod_rangec                   @   s   e Zd Zdd ZdS )TestFreqc              	   C   s^   t dddd}td  |j W 5 Q R X tr2dnd}tjt|d t	 |_W 5 Q R X d S )NZ2018Q1   Q)Zperiodsfreqz5property 'freq' of 'PeriodArray' object has no setterzcan't set attribute)match)
r   tmZassert_produces_warningr   r   pytestZraisesAttributeErrorr   ZDay)selfidxmsg r   N/tmp/pip-unpacked-wheel-g7fro6k3/pandas/tests/indexes/period/test_freq_attr.pytest_freq_setter_deprecated   s    z$TestFreq.test_freq_setter_deprecatedN)__name__
__module____qualname__r   r   r   r   r   r      s   r   )
r   Zpandas.compatr   Zpandasr   r   Zpandas._testingZ_testingr
   r   r   r   r   r   <module>   s   