Skip to content

CI: Skip numpy dev failing tests #39090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 10, 2021
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Jan 10, 2021

@phofl phofl added the CI Continuous Integration label Jan 10, 2021
@phofl
Copy link
Member Author

phofl commented Jan 10, 2021

After fixing the underlying cause we can simply revert this.

cc @jreback @simonjayhawkins

@@ -4,6 +4,7 @@
import pytest

from pandas.compat import IS64, PYPY
from pandas.compat.numpy import is_numpy_dev
Copy link
Contributor

Choose a reason for hiding this comment

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

this import should be in the prior

Copy link
Member Author

Choose a reason for hiding this comment

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

You mean we should be able to import this from pandas.compat?

Copy link
Contributor

Choose a reason for hiding this comment

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

yep

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok will pull the function up then so that we can import from there too

Copy link
Member Author

Choose a reason for hiding this comment

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

Like this?

Should this hold true for every other function defined in the numpy folder?

@@ -107,6 +108,7 @@ def test_drop_names(self):
expected = Index(["a", "b", "c"], name="first")
tm.assert_index_equal(dropped.index, expected)

@pytest.mark.xfail(is_numpy_dev, reason="GH#39089 Numpy changed dtype inference")
Copy link
Contributor

Choose a reason for hiding this comment

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

can u add an issue number to all of these (open one);

we might need to backport this as well

also see if u can find a linked numpy issue - this is a breaking change and might want to have them revert 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.

#39089 is the open issue, you meaning this?

Yeah backport is probably useful. Linked a numpy pr in #39089



__all__ = [
"is_numpy_dev",
Copy link
Member

Choose a reason for hiding this comment

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

dont we also need everything else currently in the namespace?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah probably, but not sure if we should rather do this as a follow up? If numpy fixes the bug or after we have fixed this on our site, we could simply revert this pr to avoid touching 30 files. If we do more in here, this may get tricky

@jreback
Copy link
Contributor

jreback commented Jan 10, 2021

right do the namespace changes first as a separate PR

@jreback
Copy link
Contributor

jreback commented Jan 10, 2021

ok let's just merge this until it's fixed

@jreback jreback added this to the 1.3 milestone Jan 10, 2021
@jreback jreback merged commit 3bd3d1e into pandas-dev:master Jan 10, 2021
@phofl phofl deleted the ci_numpy_dev branch January 10, 2021 20:12
phofl added a commit to phofl/pandas that referenced this pull request Jan 17, 2021
simonjayhawkins pushed a commit that referenced this pull request Jan 17, 2021
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
* CI: Skip numpy dev failing tests

* Xfail missed test

* Pull is_numpy_dev up
luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
nofarm3 pushed a commit to nofarm3/pandas that referenced this pull request Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants