Skip to content

Commit 2ff1241

Browse files
authored
TST: remove warnings, xref #15747 (#17761)
1 parent 9e67f43 commit 2ff1241

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/tests/series/test_indexing.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,15 @@ def test_basic_getitem_with_labels(self):
854854
s = Series(np.random.randn(10), index=lrange(0, 20, 2))
855855
inds = [0, 2, 5, 7, 8]
856856
arr_inds = np.array([0, 2, 5, 7, 8])
857-
result = s[inds]
857+
with tm.assert_produces_warning(FutureWarning,
858+
check_stacklevel=False):
859+
result = s[inds]
858860
expected = s.reindex(inds)
859861
assert_series_equal(result, expected)
860862

861-
result = s[arr_inds]
863+
with tm.assert_produces_warning(FutureWarning,
864+
check_stacklevel=False):
865+
result = s[arr_inds]
862866
expected = s.reindex(arr_inds)
863867
assert_series_equal(result, expected)
864868

0 commit comments

Comments
 (0)