
    Eg                     P    d dl Z d dlmZ d dlmZmZ d dlmZ  G d d          Z	dS )    N)PY311)offsetsperiod_rangec                       e Zd Zd ZdS )TestFreqc                 >   t          ddd          }t          j        d           5  |j         d d d            n# 1 swxY w Y   t          rdnd}t          j        t          |          5  t          j	                    |_        d d d            d S # 1 swxY 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msgs      _/var/www/sysmax/venv/lib/python3.11/site-packages/pandas/tests/indexes/period/test_freq_attr.pytest_freq_setter_deprecatedz$TestFreq.test_freq_setter_deprecated   s%   8QS999 '-- 	 	HH	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 'CC& 	
 ]>555 	% 	%{}}CH	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	% 	%s   ;??,BBBN)__name__
__module____qualname__r        r   r   r      s#        % % % % %r   r   )
r   pandas.compatr   pandasr   r   pandas._testing_testingr   r   r   r   r   <module>r#      s                       % % % % % % % % % %r   