Skip to content

Commit

Permalink
TST: Check error message in overlapping bins test
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyoung committed Dec 1, 2018
1 parent fa547d8 commit 99e7adc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pandas/tests/reshape/test_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ def test_bins_from_intervalindex(self):
np.array([1, 1, 2], dtype='int8'))

def test_bins_not_overlapping_from_intervalindex(self):
# verify if issue 23980 is properly solved.
# see gh-23980
msg = "Overlapping IntervalIndex is not accepted"
ii = IntervalIndex.from_tuples([(0, 10), (2, 12), (4, 14)])
with pytest.raises(ValueError):

with pytest.raises(ValueError, match=msg):
cut([5, 6], bins=ii)

def test_bins_not_monotonic(self):
Expand Down

0 comments on commit 99e7adc

Please sign in to comment.