Skip to content

Commit

Permalink
TST: remove warnings, xref pandas-dev#15747 (pandas-dev#17761)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback authored Oct 3, 2017
1 parent 9e67f43 commit 2ff1241
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pandas/tests/series/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,11 +854,15 @@ def test_basic_getitem_with_labels(self):
s = Series(np.random.randn(10), index=lrange(0, 20, 2))
inds = [0, 2, 5, 7, 8]
arr_inds = np.array([0, 2, 5, 7, 8])
result = s[inds]
with tm.assert_produces_warning(FutureWarning,
check_stacklevel=False):
result = s[inds]
expected = s.reindex(inds)
assert_series_equal(result, expected)

result = s[arr_inds]
with tm.assert_produces_warning(FutureWarning,
check_stacklevel=False):
result = s[arr_inds]
expected = s.reindex(arr_inds)
assert_series_equal(result, expected)

Expand Down

0 comments on commit 2ff1241

Please sign in to comment.