Skip to content

TST: GH20676 Verify equals operator for list of Numpy arrays #35237

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
Jul 13, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pandas/tests/series/methods/test_equals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import numpy as np
import pytest

from pandas import Series


@pytest.mark.parametrize(
"input_data", [[np.array([1, 2]), np.array([1, 2])]],
Copy link
Member

Choose a reason for hiding this comment

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

You can in-line this data in the test since is parameterizing over 1 value

)
def test_equals_list_array(input_data):
# GH20676 Verify equals operator for list of Numpy arrays
ser = Series(input_data)
assert ser.equals(ser)