Skip to content

TST: test_on_offset_implementations failing on WASM on CI #60205

Open
@mroeschke

Description

@mroeschke

This test was patched in #60186 to skip a failing case on the Pyodide build

FAILED pandas/.venv-pyodide/lib/python3.11/site-packages/pandas/tests/tseries/offsets/test_offsets_properties.py::test_on_offset_implementations - AssertionError: assert True == (Timestamp('1900-01-01 00:02:20+0630', tz='Indian/Cocos') == datetime.datetime(1900, 1, 1, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Indian/Cocos')))
 +  where True = is_on_offset(datetime.datetime(1900, 1, 1, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Indian/Cocos')))
 +    where is_on_offset = <0 * MonthBegins>.is_on_offset
Falsifying example: test_on_offset_implementations(
    dt=datetime.datetime(1900, 1, 1, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Indian/Cocos')),
    offset=MonthBegin(n=0, normalize=False),
)

You can reproduce this example by temporarily adding @reproduce_failure('6.116.0', b'AXicY2J8y4AKAA8XAPE=') as a decorator on your test case

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suiteTimezonesTimezone data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions