diff --git a/pandas/tests/test_sorting.py b/pandas/tests/test_sorting.py index 2a64947042979..7528566e8326e 100644 --- a/pandas/tests/test_sorting.py +++ b/pandas/tests/test_sorting.py @@ -409,8 +409,9 @@ def test_mixed_integer_from_list(self): def test_unsortable(self): # GH 13714 arr = np.array([1, 2, datetime.now(), 0, 3], dtype=object) - msg = (r"'(<|>)' not supported between instances of" - r" 'datetime\.datetime' and 'int'|" + msg = (r"'(<|>)' not supported between instances of ('" + r"datetime\.datetime' and 'int'|'int' and 'datetime\.datetime" + r"')|" r"unorderable types: int\(\) > datetime\.datetime\(\)") if compat.PY2: # RuntimeWarning: tp_compare didn't return -1 or -2 for exception