U
    *if                     @   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   s\   t |j  z| | | }W n$ tjtjfk
r@   t d Y nX || || kksXtd S )NF)r   	normalizepytzZNonExistentTimeErrorZAmbiguousTimeErrorZis_on_offsetAssertionError)dtoffsetcompare r   g/home/mars/bis/venv/lib/python3.8/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 s0t||  }|jdk sJtd S )Nz2017-10-30 12:00:00z
2017-11-06Dz
US/Eastern)startendfreqtz   )r   r   pdZ
date_rangehourallr   )r
   Zdtiresr   r   r   test_shift_across_dst/   s       r   )__doc__Z
hypothesisr   r   Zpytestr   Zpandasr   Zpandas._testing._hypothesisr   r   markZarm_slowr   r   r   r   r   r   <module>   s   		