o
    ŀg                     @   sj   d Z ddlmZmZ ddlZddlZddlZddlm	Z	m
Z
 ejjee	e
dd Zee
dd ZdS )	aW  
Behavioral based tests for offsets and date_range.

This file is adapted from https://github.com/pandas-dev/pandas/pull/18761 -
which was more ambitious but less idiomatic in its use of Hypothesis.

You may wish to consult the previous version for inspiration on further
tests, or when trying to pin down the bugs exposed by the tests below.
    )assumegivenN)DATETIME_JAN_1_1900_OPTIONAL_TZ
YQM_OFFSETc              	   C   sZ   t |j  z| | | }W n tjtjfy   t d Y nw || || kks+J d S )NF)r   	normalizepytzNonExistentTimeErrorAmbiguousTimeErroris_on_offset)dtoffsetcompare r   h/var/www/html/myenv/lib/python3.10/site-packages/pandas/tests/tseries/offsets/test_offsets_properties.pytest_on_offset_implementations   s   r   c                 C   sN   t | j  tjddddd}|jdk sJ ||  }|jdk s%J d S )Nz2017-10-30 12:00:00z
2017-11-06Dz
US/Eastern)startendfreqtz   )r   r   pd
date_rangehourall)r   dtiresr   r   r   test_shift_across_dst/   s   r   )__doc__
hypothesisr   r   pytestr   pandasr   pandas._testing._hypothesisr   r   markarm_slowr   r   r   r   r   r   <module>   s    		