U
    f/ed                     @   s,   d dl Zd dlmZ d dlmZ dd ZdS )    N)fieldsc                  C   s   t jdt jdd d d d } d| j_t| d}t jd	d
dddgtd}t	
|| t| d}t jdddddgt jd}t	
|| t| dd }t jdddddgt jd}t	
|| t| d}t jdt jdd }t	
|| d S )N   )Zdtypei ʚ;i         F
month_nameJanuaryFebruaryZMarchZAprilMayYi  Zis_month_startTdays)npZarangeZint64flagsZ	writeabler   Zget_date_name_fieldarrayobjecttmZassert_numpy_array_equalZget_date_fieldZint32Zget_start_end_fieldZbool_Zget_timedelta_field)Zdtindexresultexpected r   C/tmp/pip-unpacked-wheel-tiezk1ph/pandas/tests/tslibs/test_fields.pytest_fields_readonly   s     r   )Znumpyr   Zpandas._libs.tslibsr   Zpandas._testingZ_testingr   r   r   r   r   r   <module>   s   