Skip to content

Skipt failing tests for numpy dev #40877

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
Apr 11, 2021
Merged

Skipt failing tests for numpy dev #40877

merged 3 commits into from
Apr 11, 2021

Conversation

phofl
Copy link
Member

@phofl phofl commented Apr 11, 2021

Skipping for now.

@phofl phofl added CI Continuous Integration Dependencies Required and optional dependencies Upstream issue Issue related to pandas dependency labels Apr 11, 2021
@phofl
Copy link
Member Author

phofl commented Apr 11, 2021

@simonjayhawkins if an issue with 1.2.4 release we can backport here

@simonjayhawkins simonjayhawkins added this to the 1.2.4 milestone Apr 11, 2021
@simonjayhawkins
Copy link
Member

I've milestoned 1.2.4 but may need manual backport (the number of tests failing is different)

@phofl
Copy link
Member Author

phofl commented Apr 11, 2021

The test not failing on 1.2.4 is skipped there, will probably cause a merge conflict anyway

@@ -52,6 +54,11 @@ def test_array_scalar_like_equivalence(data, all_arithmetic_operators):
def test_array_NA(data, all_arithmetic_operators):
if "truediv" in all_arithmetic_operators:
pytest.skip("division with pd.NA raises")
if (
"floordiv" in all_arithmetic_operators
Copy link
Member

Choose a reason for hiding this comment

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

all_arithmetic_operators is a scalar, despite the name. maybe should be == and add the dunders for clarity?

and then maybe simplify further...

if all_arithmetic_operators in ("__floordiv__", "__rfloordiv__"):

Copy link
Member Author

Choose a reason for hiding this comment

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

See below

@@ -52,6 +54,11 @@ def test_array_scalar_like_equivalence(data, all_arithmetic_operators):
def test_array_NA(data, all_arithmetic_operators):
if "truediv" in all_arithmetic_operators:
pytest.skip("division with pd.NA raises")
if (
"floordiv" in all_arithmetic_operators
or "rfloordiv" in all_arithmetic_operators
Copy link
Member

Choose a reason for hiding this comment

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

since this is already true if "floordiv" in all_arithmetic_operators since "floordiv" in "rfloordiv" is True

Copy link
Member Author

Choose a reason for hiding this comment

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

Thats a good point, would go with this then?

Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

thanks @phofl lgtm. let's merge on green to get ci passing.

@phofl phofl merged commit 895f0b4 into pandas-dev:master Apr 11, 2021
@phofl
Copy link
Member Author

phofl commented Apr 11, 2021

@meeseeksdev backport 1.2.x

@lumberbot-app
Copy link

lumberbot-app bot commented Apr 11, 2021

Something went wrong ... Please have a look at my logs.

@phofl
Copy link
Member Author

phofl commented Apr 11, 2021

Merged, looks like numpy identified the source already, can probably revert next sunday

@phofl phofl deleted the 40874 branch April 11, 2021 16:38
phofl added a commit to phofl/pandas that referenced this pull request Apr 11, 2021
* Skipt failing tests for numpy dev

* Add missed test to skip

* Change if condition

(cherry picked from commit 895f0b4)
@simonjayhawkins
Copy link
Member

Merged, looks like numpy identified the source already, can probably revert next sunday

ok will backport to keep ci green on 1.2.x in the meantime.

@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.2.x

@phofl
Copy link
Member Author

phofl commented Apr 11, 2021

Í have added #40882 manually

phofl added a commit to phofl/pandas that referenced this pull request Apr 18, 2021
phofl added a commit that referenced this pull request Apr 18, 2021
phofl added a commit to phofl/pandas that referenced this pull request Apr 18, 2021
phofl added a commit that referenced this pull request Apr 18, 2021
…umpy dev (#40877)") (#41019)

* Revert "Skipt failing tests for numpy dev (#40877)" (#41015)

This reverts commit 895f0b4

(cherry picked from commit 70435eb)

* Add accidentially deleted code back in
sthagen added a commit to sthagen/pandas-dev-pandas that referenced this pull request Apr 18, 2021
Revert "Skipt failing tests for numpy dev (pandas-dev#40877)" (pandas-dev#41015)
yeshsurya pushed a commit to yeshsurya/pandas that referenced this pull request Apr 21, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
* Skipt failing tests for numpy dev

* Add missed test to skip

* Change if condition
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Dependencies Required and optional dependencies Upstream issue Issue related to pandas dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants