# Issue 17046 # # modified: /pandas/tests/indexes/test_base.py, # /doc/source/whatsne...
authorysau <yatshan.au@gmail.com>
Fri, 21 Jul 2017 23:29:12 +0000 (16:29 -0700)
committerMo Zhou <cdluminate@gmail.com>
Sat, 20 Jan 2018 09:00:31 +0000 (09:00 +0000)
Modified: Mo Zhou <cdluminate@gmail.com>
Modification Note: Part of the original patch doesn't apply.
 Removed modification to doc/source/whatsnew/v0.21.0.txt from the original
 patch.

Gbp-Pq: Name up_tst_np_argsort_comparison2

pandas/tests/indexes/test_base.py

index d9f8e5e7f382b1904675f999cbedf8284398aab7..a48e98a8e3eae5828ed9786a68d4e8c66e0e3739 100644 (file)
@@ -1818,7 +1818,7 @@ class TestMixedIntIndex(Base):
     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"):
@@ -1831,7 +1831,7 @@ class TestMixedIntIndex(Base):
     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"):