Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TST: handle inconsistent ordering in resample_api compat test
  • Loading branch information
jreback committed Jul 2, 2019
commit 8992760df75cb7b4537be3bc24d9937b349fa4b9
2 changes: 1 addition & 1 deletion pandas/tests/resample/test_resample_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_agg_consistency():
check_stacklevel=False):
expected = r[['A', 'B', 'C']].agg({'r1': 'mean', 'r2': 'sum'})
result = r.agg({'r1': 'mean', 'r2': 'sum'})
assert_frame_equal(result, expected)
assert_frame_equal(result, expected, check_like=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM. This could maybe be check_like=not compat.PY36 so that we continue to check it for 3.6 and above. But I suspect we have other tests ensuring the order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah just saw a bunch of failures here.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think ideally we should only do this for py 3.5


# TODO: once GH 14008 is fixed, move these tests into
# `Base` test class
Expand Down