Skip to content

BUG: Hypothesis test failure - test_on_offset_implementations  #34751

Closed
@simonjayhawkins

Description

@simonjayhawkins

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=37199&view=logs&j=76104ccd-8dcc-5006-a17c-28bcdd709542&t=cd420693-444f-5c55-14e0-1be238e189a1

2020-06-13T14:27:46.0206662Z ================================== FAILURES ===================================
2020-06-13T14:27:46.0207049Z _______________________ test_on_offset_implementations ________________________
2020-06-13T14:27:46.0207455Z [gw2] win32 -- Python 3.7.7 C:\Miniconda\envs\pandas-dev\python.exe
2020-06-13T14:27:46.0207694Z 
2020-06-13T14:27:46.0207905Z     @given(gen_random_datetime, gen_yqm_offset)
2020-06-13T14:27:46.0208239Z >   def test_on_offset_implementations(dt, offset):
2020-06-13T14:27:46.0208612Z 
2020-06-13T14:27:46.0208902Z pandas\tests\tseries\offsets\test_offsets_properties.py:89: 
2020-06-13T14:27:46.0209414Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2020-06-13T14:27:46.0209969Z pandas\tests\tseries\offsets\test_offsets_properties.py:94: in test_on_offset_implementations
2020-06-13T14:27:46.0210468Z     compare = (dt + offset) - offset
2020-06-13T14:27:46.0210950Z pandas\_libs\tslibs\offsets.pyx:438: in pandas._libs.tslibs.offsets.BaseOffset.__add__
2020-06-13T14:27:46.0211305Z     return other.__add__(self)
2020-06-13T14:27:46.0211774Z pandas\_libs\tslibs\offsets.pyx:440: in pandas._libs.tslibs.offsets.BaseOffset.__add__
2020-06-13T14:27:46.0212253Z     return self.apply(other)
2020-06-13T14:27:46.0212687Z pandas\_libs\tslibs\offsets.pyx:135: in pandas._libs.tslibs.offsets.apply_wraps.wrapper
2020-06-13T14:27:46.0213172Z     result = result.tz_localize(tz)
2020-06-13T14:27:46.0213673Z pandas\_libs\tslibs\timestamps.pyx:1258: in pandas._libs.tslibs.timestamps.Timestamp.tz_localize
2020-06-13T14:27:46.0215173Z     value = tz_localize_to_utc(np.array([self.value], dtype='i8'), tz,
2020-06-13T14:27:46.0215769Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2020-06-13T14:27:46.0216156Z 
2020-06-13T14:27:46.0216385Z >   raise pytz.NonExistentTimeError(stamp)
2020-06-13T14:27:46.0216849Z E   pytz.exceptions.NonExistentTimeError: 1906-01-01 00:00:00
2020-06-13T14:27:46.0217233Z 
2020-06-13T14:27:46.0217489Z pandas\_libs\tslibs\tzconversion.pyx:276: NonExistentTimeError
2020-06-13T14:27:46.0217864Z --------------------------------- Hypothesis ----------------------------------
2020-06-13T14:27:46.0218223Z Falsifying example: test_on_offset_implementations(
2020-06-13T14:27:46.0218570Z     dt=datetime.datetime(1900, 1, 1, 0, 0, tzinfo=tzfile('Asia/Calcutta')),
2020-06-13T14:27:46.0219018Z     offset=<72 * MonthBegins>,
2020-06-13T14:27:46.0219213Z )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions