Skip to content

Commit

Permalink
TST: Fix error message check in np.argsort comparision (#17051)
Browse files Browse the repository at this point in the history
Closes gh-17046.
  • Loading branch information
ysau authored and gfyoung committed Jul 22, 2017
1 parent 28622c5 commit c0a84b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/indexes/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ def create_index(self):
def test_argsort(self):
idx = self.create_index()
if PY36:
with tm.assert_raises_regex(TypeError, "'>' not supported"):
with tm.assert_raises_regex(TypeError, "'>|<' not supported"):
result = idx.argsort()
elif PY3:
with tm.assert_raises_regex(TypeError, "unorderable types"):
Expand All @@ -1859,7 +1859,7 @@ def test_argsort(self):
def test_numpy_argsort(self):
idx = self.create_index()
if PY36:
with tm.assert_raises_regex(TypeError, "'>' not supported"):
with tm.assert_raises_regex(TypeError, "'>|<' not supported"):
result = np.argsort(idx)
elif PY3:
with tm.assert_raises_regex(TypeError, "unorderable types"):
Expand Down

0 comments on commit c0a84b5

Please sign in to comment.