o
    ŀg                     @   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 d    n1 sw   Y  tr#dnd}tjt|d t	 |_W d    d S 1 s=w   Y  d S )N2018Q1   Q)periodsfreqz5property 'freq' of 'PeriodArray' object has no setterzcan't set attribute)match)
r   tmassert_produces_warningr
   r   pytestraisesAttributeErrorr   Day)selfidxmsg r   ^/var/www/html/myenv/lib/python3.10/site-packages/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   pandas.compatr   pandasr   r   pandas._testing_testingr   r   r   r   r   r   <module>   s
    