Skip to content

Xfail test_rolling_numba_engine for newer numba and older pandas#6236

Merged
TomAugspurger merged 2 commits intodask:masterfrom
jrbourbeau:test-fixup
May 26, 2020
Merged

Xfail test_rolling_numba_engine for newer numba and older pandas#6236
TomAugspurger merged 2 commits intodask:masterfrom
jrbourbeau:test-fixup

Conversation

@jrbourbeau
Copy link
Member

There was an internal refactor in the Numba 0.49 release which moved modules around. We're now running into a test failure (xref https://travis-ci.org/github/dask/dask/jobs/690752889#L1264) based on numba.targets being moved to numba.core. This issue was fixed upstream in Pandas (xref pandas-dev/pandas#33687) but isn't yet out in a release.

This PR xfails test_rolling_numba_engine when pandas<=1.0.3 and numba>=0.49. I confirmed locally that this test passes when using the nightly wheel for pandas.

cc @TomAugspurger

  • Tests added / passed
  • Passes black dask / flake8 dask

@jrbourbeau jrbourbeau mentioned this pull request May 25, 2020
2 tasks
pytest.importorskip("numba")
numba = pytest.importorskip("numba")
if (
dd._compat.PANDAS_VERSION <= "1.0.3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you define dd._compat.PANDAS_GT_103 use use dd._compat.PANDAS_GT_103 here? Makes it easier to clean up later since we just need to find that symbol.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I used PANDAS_GT_104 to be consistent with the other PANDAS_GT_* variables which use >= for version restrictions.

@TomAugspurger
Copy link
Member

Thanks.

@TomAugspurger TomAugspurger merged commit 5553092 into dask:master May 26, 2020
@jrbourbeau jrbourbeau deleted the test-fixup branch May 26, 2020 20:48
PANDAS_GT_0240 = PANDAS_VERSION >= LooseVersion("0.24.0")
PANDAS_GT_0250 = PANDAS_VERSION >= LooseVersion("0.25.0")
PANDAS_GT_100 = PANDAS_VERSION >= LooseVersion("1.0.0")
PANDAS_GT_104 = PANDAS_VERSION >= LooseVersion("1.0.4")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're using PANDAS_GT_104 over in test_rolling_numba_engine to know when to xfail the test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants