Skip to content

Commit bbd442a

Browse files
committed
change test
1 parent 21569bb commit bbd442a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/tests/test_algos.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -557,17 +557,17 @@ def test_empty(self, empty):
557557

558558
def test_regression_issue_19356(self):
559559
# Regression test for GH19356
560-
l = [-9, -0.5]
560+
comp_list = [1, 0.5]
561561
expected = np.array([True, False])
562562

563-
series_float = pd.Series([-9.0, 0.0])
564-
result_float = series_float.isin(l)
565-
tm.assert_numpy_array_equal(expected, result_float.values)
566-
567-
series_int = pd.Series([-9, 0])
568-
result_int = series_int.isin(l)
563+
series_int = pd.Series([1, 0])
564+
result_int = series_int.isin(comp_list)
569565
tm.assert_numpy_array_equal(expected, result_int.values)
570566

567+
series_float = pd.Series([1.0, 0.0])
568+
result_float = series_float.isin(comp_list)
569+
tm.assert_numpy_array_equal(expected, result_float.values)
570+
571571

572572
class TestValueCounts(object):
573573

0 commit comments

Comments
 (0)